Commit ed764789 authored by Philipp Hörist's avatar Philipp Hörist

Show blocked contacts as offline

parent 03e32668
Pipeline #379 passed with stages
in 1 minute and 50 seconds
......@@ -1639,6 +1639,7 @@ class Connection(CommonConnection, ConnectionHandlers):
for contact in contact_list: = 'offline'
self.send_custom_status('offline', message, contact.jid)
max_order = self.get_max_blocked_list_order()
new_rule = {'order': str(max_order + 1),
......@@ -2104,6 +2104,9 @@ ConnectionHandlersBase, ConnectionJingle, ConnectionIBBytestream):
for jid in obj.blocked_jids:
if jid not in self.blocked_contacts:
contact_list = app.contacts.get_contacts(, jid)
for contact in contact_list: = 'offline'
for jid in obj.unblocked_jids:
if jid in self.blocked_contacts:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment