fix: Correct JID comparison in MUC plugin for bare JID matching

This commit is contained in:
jinyu 2024-11-15 19:08:50 +08:00 committed by mathieui
parent 7979e3b603
commit d9b0b6dfe6

View File

@ -658,7 +658,7 @@ class XEP_0045(BasePlugin):
if entry['jid'] == jid.full: if entry['jid'] == jid.full:
return True return True
elif JID(entry['jid']) == jid.bare: elif JID(entry['jid']).bare == jid.bare:
bare_match = True bare_match = True
if bare_match: if bare_match:
@ -682,7 +682,7 @@ class XEP_0045(BasePlugin):
if entry['jid'] == jid.full: if entry['jid'] == jid.full:
return nick return nick
elif JID(entry['jid']) == jid.bare: elif JID(entry['jid']).bare == jid.bare:
bare_match = nick bare_match = nick
if bare_match: if bare_match: