Skip to content
Permalink
Browse files

Use `getDisplayName` for roster contacts

  • Loading branch information...
jcbrand committed Jun 3, 2019
1 parent 1fb5378 commit 5738b3748af5d8d92b2b70a4c03e99b1c03e41f7
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/converse-muc-views.js
  2. +1 −1 src/headless/converse-muc.js
@@ -2094,7 +2094,7 @@ converse.plugins.add('converse-muc-views', {
return;
}
form.addEventListener('submit', this.inviteFormSubmitted.bind(this), false);
const list = _converse.roster.map(i => ({'label': i.get('fullname') || i.get('jid'), 'value': i.get('jid')}));
const list = _converse.roster.map(i => ({'label': i.getDisplayName(), 'value': i.get('jid')}));
const el = this.el.querySelector('.suggestion-box').parentElement;

if (this.invite_auto_complete) {
@@ -1560,7 +1560,7 @@ converse.plugins.add('converse-muc', {
result = true;
} else {
// Invite request might come from someone not your roster list
contact = contact? contact.get('fullname'): Strophe.getNodeFromJid(from);
contact = contact? contact.getDisplayName(): Strophe.getNodeFromJid(from);
if (!reason) {
result = confirm(
__("%1$s has invited you to join a groupchat: %2$s", contact, room_jid)

0 comments on commit 5738b37

Please sign in to comment.
You can’t perform that action at this time.