diff options
author | Tulir Asokan <tulir@maunium.net> | 2018-05-02 14:17:06 +0300 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2018-05-02 14:17:16 +0300 |
commit | 85cbd64c5e78c5b8aad46c96afbd67505987dec9 (patch) | |
tree | 01f684a879a5f18e467c58e4dc37a916e430e23f /ui | |
parent | 06e8f14c8a25703091568eae692097f33d3daa86 (diff) |
Fix panic adding new room views from MainView.GetRoom()
Diffstat (limited to 'ui')
-rw-r--r-- | ui/view-main.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 |