From 85cbd64c5e78c5b8aad46c96afbd67505987dec9 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 2 May 2018 14:17:06 +0300 Subject: Fix panic adding new room views from MainView.GetRoom() --- ui/view-main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/view-main.go b/ui/view-main.go index fee07b8..b058581 100644 --- a/ui/view-main.go +++ b/ui/view-main.go @@ -327,7 +327,7 @@ func (view *MainView) addRoomPage(room *rooms.Room) { func (view *MainView) GetRoom(roomID string) ifc.RoomView { room, ok := view.rooms[roomID] if !ok { - view.AddRoom(room.Room) + view.AddRoom(view.matrix.GetRoom(roomID)) room, ok := view.rooms[roomID] if !ok { return nil -- cgit v1.2.3