Better sync between convo and protocol stores

This commit is contained in:
Fedor Indutny 2024-05-31 07:15:43 -07:00 committed by GitHub
parent 442cc43b94
commit fbf91a4d79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 195 additions and 14 deletions

View file

@ -6372,7 +6372,6 @@ async function removeAllConfiguration(): Promise<void> {
DELETE FROM backup_cdn_object_metadata;
DELETE FROM groupSendCombinedEndorsement;
DELETE FROM groupSendMemberEndorsement;
DELETE FROM identityKeys;
DELETE FROM jobs;
DELETE FROM kyberPreKeys;
DELETE FROM preKeys;
@ -6401,7 +6400,16 @@ async function removeAllConfiguration(): Promise<void> {
db.exec(
`
UPDATE conversations SET json = json_remove(json, '$.senderKeyInfo');
UPDATE conversations
SET
json = json_remove(
json,
'$.senderKeyInfo',
'$.storageID',
'$.needsStorageServiceSync',
'$.storageUnknownFields'
);
UPDATE storyDistributions SET senderKeyInfoJson = NULL;
`
);