Use lookupOrCreate in getMessageDescriptor
This commit is contained in:
parent
d9d820e72a
commit
5b38034426
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue