1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

send the m.key.verification.done message when done

This commit is contained in:
Hubert Chathi
2019-10-09 11:13:32 -04:00
parent d8e8dddd25
commit 5f3492dbf8

View File

@@ -169,6 +169,10 @@ export default class VerificationBase extends EventEmitter {
done() { done() {
this._endTimer(); // always kill the activity timer this._endTimer(); // always kill the activity timer
if (!this._done) { if (!this._done) {
if (this.roomId) {
// verification in DM requires a done message
this._send("m.key.verification.done", {});
}
this._resolve(); this._resolve();
} }
} }