unstrike groups when we remove them from blocked contacts window
This commit is contained in:
parent
7d5aab332a
commit
3176f6e1f5
|
@ -2364,18 +2364,17 @@ class BlockedContactsWindow:
|
||||||
gajim.connections[self.account].blocked_contacts.remove(jid)
|
gajim.connections[self.account].blocked_contacts.remove(jid)
|
||||||
gajim.interface.roster.draw_contact(jid, self.account)
|
gajim.interface.roster.draw_contact(jid, self.account)
|
||||||
else:
|
else:
|
||||||
|
group = deleted_rule['value']
|
||||||
for jid in gajim.contacts.get_jid_list(self.account):
|
for jid in gajim.contacts.get_jid_list(self.account):
|
||||||
contact = gajim.contacts.get_contact_with_highest_priority(
|
contact = gajim.contacts.get_contact_with_highest_priority(
|
||||||
self.account, jid)
|
self.account, jid)
|
||||||
if deleted_rule['value'] in contact.groups:
|
if group in contact.groups:
|
||||||
gajim.connections[self.account].send_custom_status(show, msg,
|
gajim.connections[self.account].send_custom_status(show, msg,
|
||||||
contact.jid)
|
contact.jid)
|
||||||
# needed for draw_contact:
|
# needed for draw_group:
|
||||||
if contact.jid in gajim.connections[self.account].\
|
if group in gajim.connections[self.account].blocked_groups:
|
||||||
blocked_contacts:
|
gajim.connections[self.account].blocked_groups.remove(group)
|
||||||
gajim.connections[self.account].blocked_contacts.remove(
|
gajim.interface.roster.draw_group(group, self.account)
|
||||||
contact.jid)
|
|
||||||
gajim.interface.roster.draw_contact(contact.jid, self.account)
|
|
||||||
|
|
||||||
def privacy_list_received(self, rules):
|
def privacy_list_received(self, rules):
|
||||||
self.store.clear()
|
self.store.clear()
|
||||||
|
|
Loading…
Reference in New Issue