diff --git a/frontends/src/quick_frontend/quick_chat.py b/frontends/src/quick_frontend/quick_chat.py index bb42458b..4579dd44 100644 --- a/frontends/src/quick_frontend/quick_chat.py +++ b/frontends/src/quick_frontend/quick_chat.py @@ -160,9 +160,9 @@ class QuickChat(quick_widgets.QuickWidget): """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):