Sender Key: Track registrationIds in senderKeyState

This commit is contained in:
Scott Nonnenberg 2021-07-30 11:35:25 -07:00 committed by GitHub
parent 689542a9b4
commit 9fb8114691
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 57 additions and 15 deletions

View file

@ -1330,18 +1330,22 @@ describe('SignalProtocolStore', () => {
{
id: 1,
identifier: number,
registrationId: 243,
},
{
id: 2,
identifier: number,
registrationId: 243,
},
{
id: 3,
identifier: number,
registrationId: 243,
},
{
id: 10,
identifier: number,
registrationId: 243,
},
],
emptyIdentifiers: ['blah', 'blah2'],

View file

@ -14,14 +14,17 @@ describe('sendToGroup', () => {
{
identifier: 'ident-guid-one',
id: 1,
registrationId: 11,
},
{
identifier: 'ident-guid-one',
id: 2,
registrationId: 22,
},
{
identifier: 'ident-guid-two',
id: 2,
registrationId: 33,
},
];
}
@ -60,10 +63,12 @@ describe('sendToGroup', () => {
{
identifier: 'ident-guid-one',
id: 2,
registrationId: 22,
},
{
identifier: 'ident-guid-two',
id: 2,
registrationId: 33,
},
]);
assert.deepEqual(newToMemberUuids, ['ident-guid-one', 'ident-guid-two']);
@ -90,10 +95,12 @@ describe('sendToGroup', () => {
{
identifier: 'ident-guid-one',
id: 2,
registrationId: 22,
},
{
identifier: 'ident-guid-two',
id: 2,
registrationId: 33,
},
]);
assert.deepEqual(removedFromMemberUuids, [