Skip to content

Commit

Permalink
onSentMessage: only merge if we have a destinationConversatonId
Browse files Browse the repository at this point in the history
  • Loading branch information
automated-signal committed Mar 7, 2024
1 parent 126d0d7 commit 591df0b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ts/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2732,7 +2732,10 @@ export async function startApp(): Promise<void> {
strictAssert(source && sourceServiceId, 'Missing user number and uuid');

// Make sure destination conversation is created before we hit getMessageDescriptor
if (data.destinationServiceId !== sourceServiceId) {
if (
data.destinationServiceId &&
data.destinationServiceId !== sourceServiceId
) {
const { mergePromises } =
window.ConversationController.maybeMergeContacts({
e164: data.destination,
Expand Down

0 comments on commit 591df0b

Please sign in to comment.