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

Support cancelling events whilst they are in status = ENCRYPTING (#2095)

This commit is contained in:
Michael Telatynski
2022-01-11 15:03:33 +00:00
committed by GitHub
parent bd47667e63
commit 2d9c938765
5 changed files with 107 additions and 15 deletions

View File

@@ -365,3 +365,5 @@ export function setHttpResponses(
.respond(200, response.data);
});
}
export const emitPromise = (e, k) => new Promise(r => e.once(k, r));