Use lookupOrCreate in getMessageDescriptor

This commit is contained in:
Fedor Indutny 2023-04-10 13:30:16 -07:00 committed by GitHub
parent d9d820e72a
commit 5b38034426
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3380,11 +3380,12 @@ export async function startApp(): Promise<void> {
}; };
} }
const { conversation } = window.ConversationController.maybeMergeContacts({ const conversation = window.ConversationController.lookupOrCreate({
aci: destinationUuid, uuid: destinationUuid,
e164: destination, e164: destination,
reason: `getMessageDescriptor(${message.timestamp}): private`, reason: `getMessageDescriptor(${message.timestamp}): private`,
}); });
strictAssert(conversation, 'Destination conversation cannot be created');
return { return {
type: Message.PRIVATE, type: Message.PRIVATE,