Skip to content
Snippets Groups Projects
Commit 9b3e2e03 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

don't allow to delete contacts from an offline account. Fixes #7822

parent a764cb53
No related branches found
No related tags found
No related merge requests found
......@@ -3459,9 +3459,13 @@ class RosterWindow:
return
jid = model[path][C_JID]
account = model[path][C_ACCOUNT]
if not gajim.account_is_connected(account):
continue
contact = gajim.contacts.get_contact_with_highest_priority(
account, jid)
list_.append((contact, account))
if not list_:
return
if type_ == 'contact':
self.on_req_usub(widget, list_)
elif type_ == 'agent':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment