You've already forked matrix-js-sdk
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:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user