plugin XEP-0045: fix early return in availableReceived blocking room join:
On room join, the room object is created before the server's self-presence arrives. `_getRoomUser()` thus returns `user=None` for the initial presence, which led to `super().availableReceived(presence)` not being called, resulting in wrong typing of the room and the room not really being joined.
This commit is contained in:
parent
8bc3b4156a
commit
de13f16791
1 changed files with 2 additions and 2 deletions
|
|
@ -1500,9 +1500,9 @@ class LiberviaMUCClient(muc.MUCClient):
|
|||
|
||||
def availableReceived(self, presence) -> None:
|
||||
"""Handle available presence."""
|
||||
room, user = self._getRoomUser(presence)
|
||||
room, __ = self._getRoomUser(presence)
|
||||
|
||||
if room is None or user is None:
|
||||
if room is None:
|
||||
return
|
||||
|
||||
# we want to keep statuses with room so they can be sent to the frontend via the
|
||||
|
|
|
|||
Loading…
Reference in a new issue