mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-11-20 11:36:24 +01:00
Merge pull request #1070 from vector-im/fix-more-sas-issues
Fix more SAS issues
This commit is contained in:
commit
4a0e2c7308
@ -19,8 +19,9 @@ import {VerificationEventType} from "../channel/types";
|
||||
export class SendDoneStage extends BaseSASVerificationStage {
|
||||
async completeStage() {
|
||||
await this.log.wrap("SendDoneStage.completeStage", async (log) => {
|
||||
this.eventEmitter.emit("VerificationCompleted", this.otherUserDeviceId);
|
||||
await this.channel.send(VerificationEventType.Done, {}, log);
|
||||
await this.channel.waitForEvent(VerificationEventType.Done);
|
||||
this.eventEmitter.emit("VerificationCompleted", this.otherUserDeviceId);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -30,7 +30,6 @@ export class VerifyMacStage extends BaseSASVerificationStage {
|
||||
const macMethod = acceptMessage.message_authentication_code;
|
||||
const calculateMAC = createCalculateMAC(this.olmSAS, macMethod);
|
||||
await this.checkMAC(calculateMAC, log);
|
||||
await this.channel.waitForEvent(VerificationEventType.Done);
|
||||
this.setNextStage(new SendDoneStage(this.options));
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user