Sender Key: Track registrationIds in senderKeyState
This commit is contained in:
parent
689542a9b4
commit
9fb8114691
5 changed files with 57 additions and 15 deletions
|
@ -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'],
|
||||
|
|
|
@ -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, [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue