mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
Remove test-code
This commit is contained in:
parent
d0b0120664
commit
acf4c901a6
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user