Skip to content
Snippets Groups Projects
Commit 6a767e3c authored by Sébastien Blin's avatar Sébastien Blin
Browse files

contact_list: do not emit ContactAdded for non active contacts

This causes the client to show a lot of removed contacts to be
shown after syncing.

Change-Id: I66f0c343ad89812196222f29b23e7c6b5dbb8954
GitLab: https://git.jami.net/savoirfairelinux/ring-project/-/issues/1282
parent e62830b3
No related branches found
No related tags found
No related merge requests found
......@@ -162,6 +162,7 @@ ContactList::setContacts(const std::map<dht::InfoHash, Contact>& contacts)
saveContacts();
// Set contacts is used when creating a new device, so just announce new contacts
for (auto& peer : contacts)
if (peer.second.isActive())
callbacks_.contactAdded(peer.first.toString(), peer.second.confirmed);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment