muctab: Display the bookmark name when available, instead of the localpart.
This commit is contained in:
parent
eae2692647
commit
b355098b4b
1 changed files with 7 additions and 3 deletions
|
@ -374,9 +374,13 @@ class MucTab(ChatTab):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def get_nick(self):
|
def get_nick(self):
|
||||||
if not config.get('show_muc_jid'):
|
if config.get('show_muc_jid'):
|
||||||
return safeJID(self.name).user
|
return self.name
|
||||||
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):
|
def get_text_window(self):
|
||||||
return self.text_win
|
return self.text_win
|
||||||
|
|
Loading…
Reference in a new issue