summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2017-10-07 00:10:38 +0200
committermathieui <mathieui@mathieui.net>2017-10-07 00:10:38 +0200
commitd603126f9b7afddc432357949fd55b10b6c90350 (patch)
treef755842946bdd02892f862bc052f344bd45a2fb3
parent87e2c3dad950413e888dde207e18c93ff2d809a4 (diff)
downloadpoezio-d603126f9b7afddc432357949fd55b10b6c90350.tar.gz
poezio-d603126f9b7afddc432357949fd55b10b6c90350.tar.bz2
poezio-d603126f9b7afddc432357949fd55b10b6c90350.tar.xz
poezio-d603126f9b7afddc432357949fd55b10b6c90350.zip
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.
-rw-r--r--poezio/tabs/muctab.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py
index 4f6b5b28..22fd598a 100644
--- a/poezio/tabs/muctab.py
+++ b/poezio/tabs/muctab.py
@@ -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)
self.core.events.trigger('muc_join', presence, self)
self.on_user_join(from_nick, affiliation, show, status, role,