Fix panic when joining new room

This commit is contained in:
Tulir Asokan 2020-02-18 21:41:49 +02:00
parent 2610c2bf9f
commit 2a4755b712

View File

@ -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
}