1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00
This commit is contained in:
Hubert Chathi
2021-05-25 22:10:15 -04:00
parent 98e2154f0f
commit e73b969066
3 changed files with 2 additions and 1 deletions

View File

@@ -35,6 +35,7 @@ import {StubStore} from "./store/stub";
import {createNewMatrixCall} from "./webrtc/call"; import {createNewMatrixCall} from "./webrtc/call";
import {CallEventHandler} from './webrtc/callEventHandler'; import {CallEventHandler} from './webrtc/callEventHandler';
import * as utils from './utils'; import * as utils from './utils';
import {sleep} from './utils';
import { import {
MatrixError, MatrixError,
PREFIX_MEDIA_R0, PREFIX_MEDIA_R0,

View File

@@ -601,6 +601,7 @@ export class Curve25519 implements BackupAlgorithm {
const backupPubKey = decryption.init_with_private_key(privKey); const backupPubKey = decryption.init_with_private_key(privKey);
if (backupPubKey !== this.authData.public_key) { if (backupPubKey !== this.authData.public_key) {
// eslint-disable-next-line no-throw-literal
throw {errcode: MatrixClient.RESTORE_BACKUP_ERROR_BAD_KEY}; throw {errcode: MatrixClient.RESTORE_BACKUP_ERROR_BAD_KEY};
} }

View File

@@ -26,7 +26,6 @@ import {EventEmitter} from 'events';
import {ReEmitter} from '../ReEmitter'; import {ReEmitter} from '../ReEmitter';
import {logger} from '../logger'; import {logger} from '../logger';
import * as utils from "../utils"; import * as utils from "../utils";
import {sleep} from "../utils";
import {OlmDevice} from "./OlmDevice"; import {OlmDevice} from "./OlmDevice";
import * as olmlib from "./olmlib"; import * as olmlib from "./olmlib";
import {DeviceList} from "./DeviceList"; import {DeviceList} from "./DeviceList";