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({
|
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,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue