aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-04-30 22:28:29 +0300
committerTulir Asokan <tulir@maunium.net>2018-04-30 22:28:29 +0300
commitb3543e90902e51c6f3cb3a90a7637d06a6ac5458 (patch)
treeef820c237b214bf3a57dce22d98d24a70a842dac /ui
parenta6b8c20b20fcf27643843cfef8516562a67c0b70 (diff)
Stop showing rooms the user has left in the room list. Fixes #35
Diffstat (limited to 'ui')
-rw-r--r--ui/view-main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/view-main.go b/ui/view-main.go
index b7bbf6d..8d6941f 100644
--- a/ui/view-main.go
+++ b/ui/view-main.go
@@ -358,6 +358,9 @@ func (view *MainView) SetRooms(rooms map[string]*rooms.Room) {
view.roomView.Clear()
view.rooms = make(map[string]*RoomView)
for _, room := range rooms {
+ if room.HasLeft {
+ continue
+ }
view.roomList.Add(room)
view.addRoomPage(room)
}