From acf4c901a60354e6f1cb153773e3f5ac0b2a011c Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Fri, 9 Jun 2023 14:06:31 +0530 Subject: [PATCH] Remove test-code --- src/domain/session/SessionViewModel.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/src/domain/session/SessionViewModel.js b/src/domain/session/SessionViewModel.js index dd8a1f4e..dc8589d1 100644 --- a/src/domain/session/SessionViewModel.js +++ b/src/domain/session/SessionViewModel.js @@ -55,24 +55,6 @@ export class SessionViewModel extends ViewModel { }))); this._setupNavigation(); this._setupForcedLogoutOnAccessTokenInvalidation(); - this.addTestCode__REMOVE(); - } - - async addTestCode__REMOVE() { - window.run = (userId) => { - return this.logger.run("testRun", async (log) => { - const crossSigning = this._client.session.crossSigning.get(); - const room = this.currentRoomViewModel.room; - const sas = crossSigning.startVerification(userId, room, log); - sas.on("EmojiGenerated", async (stage) => { - console.log("emoji", stage.emoji); - await new Promise(r => setTimeout(r, 2000)); - await stage.setEmojiMatch(true); - }); - console.log("sas", sas); - await sas.verify(); - }); - } } _setupNavigation() {