onSentMessage: only merge if we have a destinationConversatonId

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
automated-signal 2024-03-07 11:15:29 -06:00 committed by GitHub
parent edd2816fa4
commit 5e4a3966c0
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,