Instead of emitting, rely on the promise

This commit is contained in:
Luke Barnard
2018-02-22 18:41:18 +00:00
parent 30cb6f196f
commit bcb9405793
-2
View File
@@ -411,8 +411,6 @@ MatrixClient.prototype.initCrypto = async function() {
// handlers.
crypto.registerEventHandlers(this);
this._crypto = crypto;
this.emit("crypto.initComplete");
};