don't traceback when we try to draw an account that is not contacts._accounts. Fixes #5640
This commit is contained in:
parent
42f1952e15
commit
dfc0a4feab
|
@ -627,7 +627,8 @@ def get_avatar_pixbuf_from_cache(fjid, use_local=True):
|
|||
# don't show avatar for the transport itself
|
||||
return None
|
||||
|
||||
if any(jid in gajim.contacts.get_gc_list(acc) for acc in gajim.connections):
|
||||
if any(jid in gajim.contacts.get_gc_list(acc) for acc in \
|
||||
gajim.contacts.get_accounts()):
|
||||
is_groupchat_contact = True
|
||||
else:
|
||||
is_groupchat_contact = False
|
||||
|
|
|
@ -1398,7 +1398,7 @@ class RosterWindow:
|
|||
self.on_modelfilter_row_has_child_toggled)
|
||||
self.tree.set_model(self.modelfilter)
|
||||
|
||||
for acct in gajim.connections:
|
||||
for acct in gajim.contacts.get_accounts():
|
||||
self.add_account(acct)
|
||||
self.add_account_contacts(acct)
|
||||
# Recalculate column width for ellipsizing
|
||||
|
|
Loading…
Reference in New Issue