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
remove unnecessary async
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user