Remove test-code

This commit is contained in:
RMidhunSuresh 2023-06-09 14:06:31 +05:30
parent d0b0120664
commit acf4c901a6

View File

@ -55,24 +55,6 @@ export class SessionViewModel extends ViewModel {
}))); })));
this._setupNavigation(); this._setupNavigation();
this._setupForcedLogoutOnAccessTokenInvalidation(); 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() { _setupNavigation() {