Merge pull request #3981 from matrix-org/t3chguy/fix_missing_async

Add missing await causing promises to be leaked as room IDs
pull/21833/head
Michael Telatynski 2020-01-29 16:24:29 +00:00 committed by GitHub
commit 7740ec0ae3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -318,7 +318,7 @@ export default class DeviceVerifyDialog extends React.Component {
} }
async function ensureDMExistsAndOpen(userId) { async function ensureDMExistsAndOpen(userId) {
const roomId = ensureDMExists(MatrixClientPeg.get(), userId); const roomId = await ensureDMExists(MatrixClientPeg.get(), userId);
// don't use andView and spinner in createRoom, together, they cause this dialog to close and reopen, // don't use andView and spinner in createRoom, together, they cause this dialog to close and reopen,
// we causes us to loose the verifier and restart, and we end up having two verification requests // we causes us to loose the verifier and restart, and we end up having two verification requests
dis.dispatch({ dis.dispatch({