Include sender keys in SignalProtocolStore zones

This commit is contained in:
Scott Nonnenberg
2022-01-07 18:12:13 -08:00
committed by GitHub
parent a17e157e7b
commit 06165cb742
10 changed files with 231 additions and 108 deletions

View File

@@ -15,6 +15,7 @@ import {
SenderKeyDistributionMessage,
} from '@signalapp/signal-client';
import { GLOBAL_ZONE } from '../SignalProtocolStore';
import { assert } from '../util/assert';
import { parseIntOrThrow } from '../util/parseIntOrThrow';
import { Address } from '../types/Address';
@@ -1874,7 +1875,7 @@ export default class MessageSender {
ourUuid,
new Address(ourUuid, ourDeviceId)
);
const senderKeyStore = new SenderKeys({ ourUuid });
const senderKeyStore = new SenderKeys({ ourUuid, zone: GLOBAL_ZONE });
return window.textsecure.storage.protocol.enqueueSenderKeyJob(
address,