plugin XEP-0045: Fix use of empty string for nicks:

If empty string is used for nick in `join` (e.g., due to a bridge call), take use part of
the JID. This fix the use of empty resource, which was resulting in rejection by the
server.
This commit is contained in:
Goffi 2026-08-12 18:02:14 +02:00
commit e5781641f3

View file

@ -907,7 +907,7 @@ class XEP_0045:
@return: The joined room.
@raise AlreadyJoined: The room is already joined by this profile.
"""
if nick is None:
if not nick:
nick = client.jid.user
if options is None:
options = {}