Conversation Queue: Fix conversationId added to untrusted list

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
automated-signal 2022-03-01 17:18:49 -08:00 committed by GitHub
parent 6859ccd4ce
commit 17344689ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -308,7 +308,7 @@ export class ConversationJobQueue extends JobQueue<ConversationQueueJobData> {
'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<ConversationQueueJobData> {
'private'
);
strictAssert(failedConversation, 'Conversation should be created');
untrustedConversationIds.push(conversation.id);
untrustedConversationIds.push(failedConversation.id);
}
});
}