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

prevent bug when merging metacontacts

parent f9dbe1b4
No related branches found
No related tags found
No related merge requests found
......@@ -3988,6 +3988,9 @@ class RosterWindow:
_account = data['account']
_jid = data['jid']
_contact = gajim.contacts.get_first_contact_from_jid(_account, _jid)
if not _contact:
# One of the metacontacts may be not connected.
continue
_contact.groups = c_dest.groups[:]
gajim.contacts.add_metacontact(account_dest, c_dest.jid,
......
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