Instead of emitting, rely on the promise
This commit is contained in:
@@ -411,8 +411,6 @@ MatrixClient.prototype.initCrypto = async function() {
|
||||
// handlers.
|
||||
crypto.registerEventHandlers(this);
|
||||
this._crypto = crypto;
|
||||
|
||||
this.emit("crypto.initComplete");
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user