onSentMessage: only merge if we have a destinationConversatonId

This commit is contained in:
Scott Nonnenberg 2024-03-06 18:24:48 -08:00 committed by GitHub
parent 3469a748fb
commit df50085d8c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,