You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
fix lint and merge issues
This commit is contained in:
@@ -25,7 +25,7 @@ import {
|
|||||||
cacheDehydrationKey,
|
cacheDehydrationKey,
|
||||||
confirmToDismiss,
|
confirmToDismiss,
|
||||||
getDehydrationKeyCache,
|
getDehydrationKeyCache,
|
||||||
} from "./CrossSigningManager";
|
} from "./SecurityManager";
|
||||||
import Matrix from "matrix-js-sdk";
|
import Matrix from "matrix-js-sdk";
|
||||||
import { deriveKey } from 'matrix-js-sdk/src/crypto/key_passphrase';
|
import { deriveKey } from 'matrix-js-sdk/src/crypto/key_passphrase';
|
||||||
import { decodeRecoveryKey } from 'matrix-js-sdk/src/crypto/recoverykey';
|
import { decodeRecoveryKey } from 'matrix-js-sdk/src/crypto/recoverykey';
|
||||||
@@ -173,8 +173,8 @@ export async function sendLoginRequest(hsUrl, isUrl, loginType, loginParams) {
|
|||||||
baseUrl: hsUrl,
|
baseUrl: hsUrl,
|
||||||
idBaseUrl: isUrl,
|
idBaseUrl: isUrl,
|
||||||
cryptoCallbacks: {
|
cryptoCallbacks: {
|
||||||
getDehydrationKey
|
getDehydrationKey,
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
const data = await client.loginWithRehydration(null, loginType, loginParams);
|
const data = await client.loginWithRehydration(null, loginType, loginParams);
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ async function getSecretStorageKey({ keys: keyInfos }, ssssItemName) {
|
|||||||
// if we dehydrated a device, see if that key works for SSSS
|
// if we dehydrated a device, see if that key works for SSSS
|
||||||
if (dehydrationInfo.key) {
|
if (dehydrationInfo.key) {
|
||||||
try {
|
try {
|
||||||
if (await MatrixClientPeg.get().checkSecretStorageKey(dehydrationInfo.key, info)) {
|
if (await MatrixClientPeg.get().checkSecretStorageKey(dehydrationInfo.key, keyInfo)) {
|
||||||
const key = dehydrationInfo.key;
|
const key = dehydrationInfo.key;
|
||||||
// Save to cache to avoid future prompts in the current session
|
// Save to cache to avoid future prompts in the current session
|
||||||
if (isCachingAllowed()) {
|
if (isCachingAllowed()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user