we can now re-add a contact that was ith sub=none (so not shown at all in roster)

This commit is contained in:
Yann Leboulanger 2006-03-30 17:55:25 +00:00
parent 619aaf9f73
commit 276415f570
1 changed files with 6 additions and 6 deletions

View File

@ -460,12 +460,12 @@ _('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
message_buffer = self.xml.get_widget('message_textview').get_buffer() message_buffer = self.xml.get_widget('message_textview').get_buffer()
start_iter = message_buffer.get_start_iter() start_iter = message_buffer.get_start_iter()