mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 19:26:04 +03: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
1 changed files with 4 additions and 2 deletions
|
@ -195,9 +195,11 @@ module.exports = {
|
||||||
firstRoom = RoomListSorter.mostRecentActivityFirst(
|
firstRoom = RoomListSorter.mostRecentActivityFirst(
|
||||||
cli.getRooms()
|
cli.getRooms()
|
||||||
)[0].roomId;
|
)[0].roomId;
|
||||||
|
self.setState({ready: true, currentRoom: firstRoom});
|
||||||
|
self.notifyNewScreen('room/'+firstRoom);
|
||||||
|
} else {
|
||||||
|
self.setState({ready: true});
|
||||||
}
|
}
|
||||||
self.setState({ready: true, currentRoom: firstRoom});
|
|
||||||
self.notifyNewScreen('room/'+firstRoom);
|
|
||||||
} else {
|
} else {
|
||||||
self.setState({ready: true});
|
self.setState({ready: true});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue