1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00
This commit is contained in:
Matthew Hodgson
2016-07-17 18:32:48 +01:00
parent bfe50c209c
commit 2bc9dd4307
2 changed files with 29 additions and 7 deletions

View File

@@ -69,6 +69,10 @@ function createRoom(opts) {
return client.createRoom(createOpts).finally(function() {
modal.close();
}).then(function(res) {
// NB createRoom doesn't block on the client seeing the echo that the
// room has been created, so we race here with the client knowing that
// the room exists, causing things like
// https://github.com/vector-im/vector-web/issues/1813
dis.dispatch({
action: 'view_room',
room_id: res.room_id