onSentMessage: only merge if we have a destinationConversatonId
Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
parent
edd2816fa4
commit
5e4a3966c0
1 changed files with 4 additions and 1 deletions
|
@ -2732,7 +2732,10 @@ export async function startApp(): Promise<void> {
|
||||||
strictAssert(source && sourceServiceId, 'Missing user number and uuid');
|
strictAssert(source && sourceServiceId, 'Missing user number and uuid');
|
||||||
|
|
||||||
// Make sure destination conversation is created before we hit getMessageDescriptor
|
// Make sure destination conversation is created before we hit getMessageDescriptor
|
||||||
if (data.destinationServiceId !== sourceServiceId) {
|
if (
|
||||||
|
data.destinationServiceId &&
|
||||||
|
data.destinationServiceId !== sourceServiceId
|
||||||
|
) {
|
||||||
const { mergePromises } =
|
const { mergePromises } =
|
||||||
window.ConversationController.maybeMergeContacts({
|
window.ConversationController.maybeMergeContacts({
|
||||||
e164: data.destination,
|
e164: data.destination,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue