Merge contacts when we discover split or duplicated contacts

This commit is contained in:
Scott Nonnenberg 2020-07-10 11:28:49 -07:00
parent 68e432188b
commit 901179440f
32 changed files with 1199 additions and 824 deletions

View file

@ -30,11 +30,10 @@
this.remove(receipts);
return receipts;
},
async getTargetMessage(source, messages) {
async getTargetMessage(sourceId, messages) {
if (messages.length === 0) {
return null;
}
const sourceId = ConversationController.getConversationId(source);
const message = messages.find(
item => !item.isIncoming() && sourceId === item.get('conversationId')
);