when we remove a contact with awaiting events, re-add it in not in roster group. Fixes #1809

This commit is contained in:
Yann Leboulanger 2006-04-05 19:05:09 +00:00
parent 37fd51363a
commit 9695633c7e
1 changed files with 2 additions and 1 deletions

View File

@ -1747,7 +1747,8 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
contact.sub = 'from' contact.sub = 'from'
gajim.contacts.add_contact(account, contact) gajim.contacts.add_contact(account, contact)
self.add_contact_to_roster(contact.jid, account) self.add_contact_to_roster(contact.jid, account)
elif gajim.interface.msg_win_mgr.has_window(contact.jid, account): elif gajim.interface.msg_win_mgr.has_window(contact.jid, account) or \
gajim.awaiting_events[account].has_key(contact.jid):
c = gajim.contacts.create_contact(jid = contact.jid, c = gajim.contacts.create_contact(jid = contact.jid,
name = '', groups = [_('Not in Roster')], name = '', groups = [_('Not in Roster')],
show = 'not in roster', status = '', ask = 'none', show = 'not in roster', status = '', ask = 'none',