mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Don't announce that we've entered the null room on login if there are no rooms.
This commit is contained in:
parent
9847383ba6
commit
c2e92045d0
@ -195,12 +195,14 @@ module.exports = {
|
|||||||
firstRoom = RoomListSorter.mostRecentActivityFirst(
|
firstRoom = RoomListSorter.mostRecentActivityFirst(
|
||||||
cli.getRooms()
|
cli.getRooms()
|
||||||
)[0].roomId;
|
)[0].roomId;
|
||||||
}
|
|
||||||
self.setState({ready: true, currentRoom: firstRoom});
|
self.setState({ready: true, currentRoom: firstRoom});
|
||||||
self.notifyNewScreen('room/'+firstRoom);
|
self.notifyNewScreen('room/'+firstRoom);
|
||||||
} else {
|
} else {
|
||||||
self.setState({ready: true});
|
self.setState({ready: true});
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
self.setState({ready: true});
|
||||||
|
}
|
||||||
dis.dispatch({action: 'focus_composer'});
|
dis.dispatch({action: 'focus_composer'});
|
||||||
});
|
});
|
||||||
cli.on('Call.incoming', function(call) {
|
cli.on('Call.incoming', function(call) {
|
||||||
|
Loading…
Reference in New Issue
Block a user