[gdr_gdr] Improve error message when a groupchat is in roster as a contact. Fixes #8380
This commit is contained in:
parent
7cf654cdb3
commit
b51b633d2a
|
@ -2664,7 +2664,9 @@ class JoinGroupchatWindow:
|
|||
if gajim.contacts.get_contact(self.account, room_jid) and \
|
||||
not gajim.contacts.get_contact(self.account, room_jid).is_groupchat():
|
||||
ErrorDialog(_('This is not a group chat'),
|
||||
_('%s is not the name of a group chat.') % room_jid)
|
||||
_('%s is already in your roster. Please check if %s is a '
|
||||
'correct group chat name. If it is, delete it from your roster '
|
||||
'and try joining the group chat again.') % (room_jid, room_jid))
|
||||
return
|
||||
|
||||
full_jid = room_jid + '/' + nickname
|
||||
|
|
|
@ -2117,7 +2117,9 @@ class Interface:
|
|||
if gajim.contacts.get_contact(account, room_jid) and \
|
||||
not gajim.contacts.get_contact(account, room_jid).is_groupchat():
|
||||
dialogs.ErrorDialog(_('This is not a group chat'),
|
||||
_('%s is not the name of a group chat.') % room_jid)
|
||||
_('%s is already in your roster. Please check if %s is a '
|
||||
'correct group chat name. If it is, delete it from your roster '
|
||||
'and try joining the group chat again.') % (room_jid, room_jid))
|
||||
return
|
||||
|
||||
if not nick:
|
||||
|
|
Loading…
Reference in New Issue