Conversation Queue: Fix conversationId added to untrusted list
Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
parent
6859ccd4ce
commit
17344689ca
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue