diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/view-main.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/view-main.go b/ui/view-main.go index c8b24f1..beb6f5f 100644 --- a/ui/view-main.go +++ b/ui/view-main.go @@ -470,10 +470,16 @@ func (view *MainView) NotifyMessage(room *rooms.Room, message ifc.Message, shoul } message.SetIsHighlight(should.Highlight) - room.LastReceivedMessage = message.Timestamp() view.roomList.Bump(room) } +func (view *MainView) InitialSyncDone() { + view.roomList.Clear() + for _, room := range view.rooms { + view.roomList.Add(room.Room) + } +} + func (view *MainView) LoadHistory(room string) { defer debug.Recover() roomView := view.rooms[room] |