mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-27 21:53:18 +00:00
Sender Key: Track registrationIds in senderKeyState
This commit is contained in:
@@ -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, [
|
||||
|
||||
Reference in New Issue
Block a user