From 71b2b6e30af990fc7be6367e75062b5b32680456 Mon Sep 17 00:00:00 2001 From: Scott Nonnenberg Date: Tue, 1 Mar 2022 17:04:19 -0800 Subject: [PATCH] Conversation Queue: Fix conversationId added to untrusted list --- ts/jobs/conversationJobQueue.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/jobs/conversationJobQueue.ts b/ts/jobs/conversationJobQueue.ts index fcacde6779..db39a16430 100644 --- a/ts/jobs/conversationJobQueue.ts +++ b/ts/jobs/conversationJobQueue.ts @@ -308,7 +308,7 @@ export class ConversationJobQueue extends JobQueue { 'private' ); strictAssert(failedConversation, 'Conversation should be created'); - untrustedConversationIds.push(conversation.id); + untrustedConversationIds.push(failedConversation.id); } else if (error instanceof SendMessageProtoError) { (error.errors || []).forEach(innerError => { if (innerError instanceof OutgoingIdentityKeyError) { @@ -318,7 +318,7 @@ export class ConversationJobQueue extends JobQueue { 'private' ); strictAssert(failedConversation, 'Conversation should be created'); - untrustedConversationIds.push(conversation.id); + untrustedConversationIds.push(failedConversation.id); } }); }