Use the roster name or vCard nickname before falling back to vCard fullname or JID.
This commit is contained in:
parent
299fa4f3f8
commit
958e8a98a8
@ -208,8 +208,8 @@
|
||||
render () {
|
||||
this.el.innerHTML = tpl_chatbox_head(
|
||||
_.extend(
|
||||
this.model.toJSON(),
|
||||
this.model.vcard.toJSON(),
|
||||
this.model.toJSON(),
|
||||
{ '_converse': _converse,
|
||||
'info_close': __('Close this chat box')
|
||||
}
|
||||
|
@ -247,7 +247,7 @@
|
||||
},
|
||||
|
||||
getDisplayName () {
|
||||
return this.vcard.get('fullname') || this.get('jid');
|
||||
return this.get('nickname') || this.vcard.get('nickname') || this.vcard.get('fullname') || this.get('jid');
|
||||
},
|
||||
|
||||
getFullname () {
|
||||
|
@ -7,7 +7,7 @@
|
||||
{[ if (o.url) { ]}
|
||||
<a href="{{{o.url}}}" target="_blank" rel="noopener" class="user">
|
||||
{[ } ]}
|
||||
{{{ o.fullname || o.jid }}}
|
||||
{{{ o.nickname || o.fullname || o.jid }}}
|
||||
{[ if (o.url) { ]}
|
||||
</a>
|
||||
{[ } ]}
|
||||
|
Loading…
Reference in New Issue
Block a user