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

remove unnecessary async

This commit is contained in:
Hubert Chathi
2019-10-23 12:03:17 -04:00
parent 0f1206b4ee
commit 136b9c0f50

View File

@@ -798,7 +798,7 @@ Crypto.prototype.requestVerificationDM = async function(userId, roomId, methods)
} }
let eventId = undefined; let eventId = undefined;
const listenPromise = new Promise(async (_resolve, _reject) => { const listenPromise = new Promise((_resolve, _reject) => {
const listener = (event) => { const listener = (event) => {
// listen for events related to this verification // listen for events related to this verification
if (event.getRoomId() !== roomId if (event.getRoomId() !== roomId