Fix panic when joining new room
This commit is contained in:
parent
2610c2bf9f
commit
2a4755b712
@ -760,7 +760,7 @@ func (c *Container) JoinRoom(roomID, server string) (*rooms.Room, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
room := c.GetRoom(resp.RoomID)
|
room := c.GetOrCreateRoom(resp.RoomID)
|
||||||
room.HasLeft = false
|
room.HasLeft = false
|
||||||
return room, nil
|
return room, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user