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