we can now remove a contact from not in roster group which has unread events. there are just removed. fixes #2888

This commit is contained in:
Yann Leboulanger 2007-01-31 19:45:13 +00:00
parent b45b27697a
commit 8f50d04ea8
1 changed files with 2 additions and 0 deletions

View File

@ -2672,6 +2672,8 @@ class RosterWindow:
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)
else: else:
if _('Not in Roster') in contact.groups:
gajim.events.remove_events(account, contact.jid)
self.readd_if_needed(contact, account) self.readd_if_needed(contact, account)
if len(list_) == 1: if len(list_) == 1:
contact = list_[0][0] contact = list_[0][0]