mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 18:43:41 -05:00
Fix panic when joining new room
This commit is contained in:
parent
2610c2bf9f
commit
2a4755b712
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue