Commit d603126f authored by mathieui's avatar mathieui

Fix #3332 (showing a join for a type="unavailable" presence)

When a user isn't in a room, but due to a component bug we receive a
unavailable presence, we were showing a join.
parent 87e2c3da
......@@ -1167,7 +1167,7 @@ class MucTab(ChatTab):
non_member = '322' in status_codes and typ == 'unavailable'
user = self.get_user_by_name(from_nick)
# New user
if not user:
if not user and typ != "unavailable":
user_color = self.search_for_color(from_nick)'muc_join', presence, self)
self.on_user_join(from_nick, affiliation, show, status, role,
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