From 2a4755b712698177dc5c822d8b77e5bfbc7d7a8e Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 18 Feb 2020 21:41:49 +0200 Subject: [PATCH] Fix panic when joining new room --- matrix/matrix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix/matrix.go b/matrix/matrix.go index ed50f95..f77a257 100644 --- a/matrix/matrix.go +++ b/matrix/matrix.go @@ -760,7 +760,7 @@ func (c *Container) JoinRoom(roomID, server string) (*rooms.Room, error) { return nil, err } - room := c.GetRoom(resp.RoomID) + room := c.GetOrCreateRoom(resp.RoomID) room.HasLeft = false return room, nil }