You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-28 05:03:59 +03:00
lint
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|||||||
Reference in New Issue
Block a user