we can now re-add a contact that was ith sub=none (so not shown at all in roster)
This commit is contained in:
parent
619aaf9f73
commit
276415f570
|
@ -460,9 +460,9 @@ _('Please fill in the data of the contact you want to add in account %s') %accou
|
||||||
return
|
return
|
||||||
|
|
||||||
# Check if jid is already in roster
|
# Check if jid is already in roster
|
||||||
if jid in gajim.contacts.get_jid_list(self.account) and \
|
if jid in gajim.contacts.get_jid_list(self.account):
|
||||||
_('Not in Roster') not in \
|
c = gajim.contacts.get_first_contact_from_jid(self.account, jid)
|
||||||
gajim.contacts.get_first_contact_from_jid(self.account, jid).groups:
|
if _('Not in Roster') not in c.groups and c.sub in ('both', 'to'):
|
||||||
ErrorDialog(_('Contact already in roster'),
|
ErrorDialog(_('Contact already in roster'),
|
||||||
_('This contact is already listed in your roster.')).get_response()
|
_('This contact is already listed in your roster.')).get_response()
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue