diff --git a/src/dialogs.py b/src/dialogs.py index c761e37cc..6dec2e573 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -4482,7 +4482,7 @@ class InvitationReceivedDialog: sectext = _('$Contact has invited you to group chat %(room_jid)s')\ % {'room_jid': room_jid} contact = gajim.contacts.get_first_contact_from_jid(account, jid) - contact_text = contact and contact.name or contact_jid + contact_text = contact and contact.name or jid sectext = sectext.replace('$Contact', contact_text) if comment: # only if not None and not ''