Move to uuids for untrusted conversations needing verification

This commit is contained in:
Scott Nonnenberg 2022-05-31 12:46:56 -07:00 committed by GitHub
parent d3f9b656dd
commit d446aa9e6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 138 additions and 101 deletions

View file

@ -27,7 +27,7 @@ import {
getComposeSelectedContacts,
getContactNameColorSelector,
getConversationByIdSelector,
getConversationIdsStoppingSend,
getConversationUuidsStoppingSend,
getConversationIdsStoppedForVerification,
getConversationsByTitleSelector,
getConversationSelector,
@ -311,17 +311,17 @@ describe('both/state/selectors/conversations', () => {
verificationDataByConversation: {
'convo a': {
type: ConversationVerificationState.PendingVerification as const,
conversationsNeedingVerification: ['abc'],
uuidsNeedingVerification: ['abc'],
},
'convo b': {
type: ConversationVerificationState.PendingVerification as const,
conversationsNeedingVerification: ['def', 'abc'],
uuidsNeedingVerification: ['def', 'abc'],
},
},
},
};
assert.sameDeepMembers(getConversationIdsStoppingSend(state), [
assert.sameDeepMembers(getConversationUuidsStoppingSend(state), [
'abc',
'def',
]);
@ -354,11 +354,11 @@ describe('both/state/selectors/conversations', () => {
verificationDataByConversation: {
'convo a': {
type: ConversationVerificationState.PendingVerification as const,
conversationsNeedingVerification: ['abc'],
uuidsNeedingVerification: ['abc'],
},
'convo b': {
type: ConversationVerificationState.PendingVerification as const,
conversationsNeedingVerification: ['def', 'abc'],
uuidsNeedingVerification: ['def', 'abc'],
},
},
},