muctab: Display the bookmark name when available, instead of the localpart.

This commit is contained in:
Emmanuel Gil Peyrot 2017-11-24 03:06:22 +00:00
parent eae2692647
commit b355098b4b

View file

@ -374,9 +374,13 @@ class MucTab(ChatTab):
return False
def get_nick(self):
if not config.get('show_muc_jid'):
return safeJID(self.name).user
return self.name
if config.get('show_muc_jid'):
return self.name
bookmark = self.core.bookmarks[self.name]
if bookmark is not None and bookmark.name:
return bookmark.name
# TODO: send the disco#info identity name here, if it exists.
return safeJID(self.name).user
def get_text_window(self):
return self.text_win