Don't send groups in contact sync message

pull/877/head
Mikunj 5 years ago
parent 62825faa61
commit b61dd6a839

@ -2008,7 +2008,7 @@
} }
}); });
} else if (newGroup) { } else if (newGroup) {
// We have an unknown group, we should request info // We have an unknown group, we should request info from the sender
textsecure.messaging.requestGroupInfo(conversationId, [ textsecure.messaging.requestGroupInfo(conversationId, [
primarySource, primarySource,
]); ]);

@ -109,8 +109,9 @@
} }
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(c => c.isPrivate());
const rawContacts = await Promise.all( const rawContacts = await Promise.all(
conversations.map(async conversation => { sessionContacts.map(async conversation => {
const profile = conversation.getLokiProfile(); const profile = conversation.getLokiProfile();
const number = conversation.getNumber(); const number = conversation.getNumber();
const name = profile const name = profile

Loading…
Cancel
Save