multi device: do not sync contacts not friends

pull/992/head
Audric Ackermann 5 years ago
parent 67ddf101d3
commit a7def71840
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -110,7 +110,7 @@
async function createContactSyncProtoMessage(conversations) { async function createContactSyncProtoMessage(conversations) {
// Extract required contacts information out of conversations // Extract required contacts information out of conversations
const sessionContacts = conversations.filter( const sessionContacts = conversations.filter(
c => c.isPrivate() && !c.isSecondaryDevice() c => c.isPrivate() && !c.isSecondaryDevice() && c.isFriend()
); );
if (sessionContacts.length === 0) { if (sessionContacts.length === 0) {

Loading…
Cancel
Save