Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit a8165d1

Browse files
committed
Fix infinite spinner on email registration
Remove setTimeout on dialog display as it's no longer necessary and causes races.
1 parent 66c3a6d commit a8165d1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/createRoom.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,7 @@ function createRoom(opts) {
7676
}
7777
];
7878

79-
let modal;
80-
setTimeout(()=>{
81-
modal = Modal.createDialog(Loader, null, 'mx_Dialog_spinner');
82-
}, 0);
79+
const modal = Modal.createDialog(Loader, null, 'mx_Dialog_spinner');
8380

8481
let roomId;
8582
return client.createRoom(createOpts).finally(function() {

0 commit comments

Comments
 (0)