Don't announce that we've entered the null room on login if there are no rooms.

pull/4/head
David Baker 2015-07-22 21:37:46 -07:00
parent 9847383ba6
commit c2e92045d0
1 changed files with 4 additions and 2 deletions

View File

@ -195,9 +195,11 @@ module.exports = {
firstRoom = RoomListSorter.mostRecentActivityFirst(
cli.getRooms()
)[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 {
self.setState({ready: true});
}