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({
aci: destinationUuid,
const conversation = window.ConversationController.lookupOrCreate({
uuid: destinationUuid,
e164: destination,
reason: `getMessageDescriptor(${message.timestamp}): private`,
});
strictAssert(conversation, 'Destination conversation cannot be created');
return {
type: Message.PRIVATE,