diff options
author | Tulir Asokan <tulir@maunium.net> | 2020-02-18 21:41:49 +0200 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2020-02-18 21:41:49 +0200 |
commit | 2a4755b712698177dc5c822d8b77e5bfbc7d7a8e (patch) | |
tree | f913f548912897c31baa4997dc9d260a5124ca4f /matrix | |
parent | 2610c2bf9f220e188e4cf8f4b9bcf88bde541958 (diff) |
Fix panic when joining new room
Diffstat (limited to 'matrix')
-rw-r--r-- | matrix/matrix.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |