mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-25 04:36:46 +00:00
Merge contacts when we discover split or duplicated contacts
This commit is contained in:
@@ -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')
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user