Mercurial > libervia-backend
diff frontends/src/quick_frontend/quick_chat.py @ 1428:0e518415d03a
display the resource in the chat dialog when printing a private MUC message
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 24 Apr 2015 16:10:46 +0200 |
parents | 069ad98b360d |
children | b4c49c234c6b |
line wrap: on
line diff
--- a/frontends/src/quick_frontend/quick_chat.py Fri Apr 24 14:57:09 2015 +0200 +++ b/frontends/src/quick_frontend/quick_chat.py Fri Apr 24 16:10:46 2015 +0200 @@ -158,9 +158,9 @@ def _get_nick(self, entity): """Return nick of this entity when possible""" - if self.type == C.CHAT_GROUP: + 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 - contact_list = self.host.contact_lists[self.profile] if entity.bare in contact_list: return contact_list.getCache(entity,'nick') or contact_list.getCache(entity,'name') or entity.node or entity return entity.node or entity