mirror of https://github.com/vector-im/riot-web
Merge pull request #1390 from matrix-org/dbkr/create_room_no_spinner
Display spinner not room preview after room createpull/21833/head
commit
c814f02f34
|
@ -79,12 +79,6 @@ function createRoom(opts) {
|
|||
const modal = Modal.createDialog(Loader, null, 'mx_Dialog_spinner');
|
||||
|
||||
let roomId;
|
||||
if (opts.andView) {
|
||||
// We will possibly have a successful join, indicate as such
|
||||
dis.dispatch({
|
||||
action: 'will_join',
|
||||
});
|
||||
}
|
||||
return client.createRoom(createOpts).finally(function() {
|
||||
modal.close();
|
||||
}).then(function(res) {
|
||||
|
@ -104,8 +98,10 @@ function createRoom(opts) {
|
|||
action: 'view_room',
|
||||
room_id: roomId,
|
||||
should_peek: false,
|
||||
// Creating a room will have joined us to the room
|
||||
joined: true,
|
||||
// Creating a room will have joined us to the room,
|
||||
// so we are expecting the room to come down the sync
|
||||
// stream, if it hasn't already.
|
||||
joining: true,
|
||||
});
|
||||
}
|
||||
return roomId;
|
||||
|
|
|
@ -119,12 +119,10 @@ class RoomViewStore extends Store {
|
|||
roomLoadError: null,
|
||||
// should peek by default
|
||||
shouldPeek: payload.should_peek === undefined ? true : payload.should_peek,
|
||||
// have we sent a join request for this room and are waiting for a response?
|
||||
joining: payload.joining || false,
|
||||
};
|
||||
|
||||
if (payload.joined) {
|
||||
newState.joining = false;
|
||||
}
|
||||
|
||||
if (this._state.forwardingEvent) {
|
||||
dis.dispatch({
|
||||
action: 'send_event',
|
||||
|
|
Loading…
Reference in New Issue