You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Add missing await causing promises to be leaked as room IDs
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@ -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({
|
||||||
|
Reference in New Issue
Block a user