Fix the case when we receive an unavailable presence while joining

This commit is contained in:
mathieui 2017-11-22 21:19:27 +01:00
parent 057f7ac9f5
commit 5f5cc186dc
No known key found for this signature in database
GPG key ID: C59F84CEEFD616E3

View file

@ -465,6 +465,8 @@ class MucTab(ChatTab):
"""
from_nick, _, affiliation, show, status, role, jid, typ = dissect_presence(
presence)
if typ == 'unavailable':
return
user_color = self.search_for_color(from_nick)
new_user = User(from_nick, affiliation, show, status, role, jid,
deterministic, user_color)