diff --git a/src/roster_window.py b/src/roster_window.py index 102b8fefb..ff5260c3e 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -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':