aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-05-02 14:17:06 +0300
committerTulir Asokan <tulir@maunium.net>2018-05-02 14:17:16 +0300
commit85cbd64c5e78c5b8aad46c96afbd67505987dec9 (patch)
tree01f684a879a5f18e467c58e4dc37a916e430e23f
parent06e8f14c8a25703091568eae692097f33d3daa86 (diff)
Fix panic adding new room views from MainView.GetRoom()
-rw-r--r--ui/view-main.go2
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