mirror of
https://dev.narayana.im/narayana/telegabber.git
synced 2026-08-05 04:07:07 +00:00
Fix crash on bumping non-existent occupant
This commit is contained in:
parent
f9be86b5db
commit
cb6eaef16f
1 changed files with 3 additions and 1 deletions
|
|
@ -759,7 +759,9 @@ func (c *Client) mucCacheHasOccupant(mucID int64, memberID int64) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
occupant, ok := mucState.Occupants.Get(memberID)
|
occupant, ok := mucState.Occupants.Get(memberID)
|
||||||
|
if ok {
|
||||||
mucState.Occupants.Bump(occupant)
|
mucState.Occupants.Bump(occupant)
|
||||||
|
}
|
||||||
return ok
|
return ok
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue