display the resource in the chat dialog when printing a private MUC message
This commit is contained in:
parent
f78804cce5
commit
f978524b22
1 changed files with 14 additions and 2 deletions
|
|
@ -158,9 +158,9 @@ class QuickChat(quick_widgets.QuickWidget):
|
|||
|
||||
def _get_nick(self, entity):
|
||||
"""Return nick of this entity when possible"""
|
||||
if self.type == C.CHAT_GROUP:
|
||||
return entity.resource
|
||||
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
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue