# HG changeset patch # User souliane # Date 1436885369 -7200 # Node ID b4c49c234c6b35e91983d00a982627e417fed0a0 # Parent 226bbe758b1a21041ad2b4180730a603d5efbb59 quick_frontend (quick_chat): QuickChat._get_nick returns "" instead of None for message from the MUC diff -r 226bbe758b1a -r b4c49c234c6b frontends/src/quick_frontend/quick_chat.py --- a/frontends/src/quick_frontend/quick_chat.py Tue Jul 14 16:44:15 2015 +0200 +++ b/frontends/src/quick_frontend/quick_chat.py Tue Jul 14 16:49:29 2015 +0200 @@ -160,9 +160,9 @@ """Return nick of this entity when possible""" contact_list = self.host.contact_lists[self.profile] if self.type == C.CHAT_GROUP or entity in contact_list.getSpecialExtras(C.CONTACT_SPECIAL_GROUP): - return entity.resource + return entity.resource or "" if entity.bare in contact_list: - return contact_list.getCache(entity,'nick') or contact_list.getCache(entity,'name') or entity.node or entity + return contact_list.getCache(entity, 'nick') or contact_list.getCache(entity, 'name') or entity.node or entity return entity.node or entity def onPrivateCreated(self, widget):