Deprecate storageServiceKey in SyncMessage.Keys

This commit is contained in:
Fedor Indutny 2023-10-12 21:42:24 +02:00 committed by GitHub
parent 37b3a6de4b
commit d7b53f3d27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 62 additions and 26 deletions

View file

@ -3292,12 +3292,15 @@ export default class MessageReceiver
logUnexpectedUrgentValue(envelope, 'keySync');
if (!sync.storageService) {
if (!sync.storageService && !sync.master) {
return undefined;
}
const ev = new KeysEvent(
sync.storageService,
{
storageServiceKey: dropNull(sync.storageService),
masterKey: dropNull(sync.master),
},
this.removeFromCache.bind(this, envelope)
);