MucTab: Ignore presence from MUC barejid

Signed-off-by: Maxime Buquet's avatarMaxime “pep” Buquet <pep@bouah.net>
parent 36a0281b
Pipeline #3115 passed with stages
in 3 minutes and 58 seconds
......@@ -513,6 +513,9 @@ class MucTab(ChatTab):
"""
Presence received while we are not in the room (before code=110)
"""
# If presence is coming from MUC barejid, ignore.
if not presence['from'].resource:
return None
from_nick, _, affiliation, show, status, role, jid, typ = dissect_presence(
presence)
if typ == 'unavailable':
......@@ -596,6 +599,9 @@ class MucTab(ChatTab):
"""
Handle new presences when we are already in the room
"""
# If presence is coming from MUC barejid, ignore.
if not presence['from'].resource:
return None
from_nick, from_room, affiliation, show, status, role, jid, typ = dissect_presence(
presence)
change_nick = '303' in status_codes
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment