Page MenuHomePhabricator

D11424.id38406.diff
No OneTemporary

D11424.id38406.diff

diff --git a/native/data/sqlite-data-handler.js b/native/data/sqlite-data-handler.js
--- a/native/data/sqlite-data-handler.js
+++ b/native/data/sqlite-data-handler.js
@@ -11,6 +11,7 @@
import { integrityStoreOpsHandlers } from 'lib/ops/integrity-store-ops.js';
import { keyserverStoreOpsHandlers } from 'lib/ops/keyserver-store-ops.js';
import { reportStoreOpsHandlers } from 'lib/ops/report-store-ops.js';
+import { syncedMetadataStoreOpsHandlers } from 'lib/ops/synced-metadata-store-ops.js';
import { threadStoreOpsHandlers } from 'lib/ops/thread-store-ops.js';
import { userStoreOpsHandlers } from 'lib/ops/user-store-ops.js';
import { isLoggedIn } from 'lib/selectors/user-selectors.js';
@@ -208,6 +209,7 @@
keyservers,
communities,
integrityThreadHashes,
+ syncedMetadata,
} = await commCoreModule.getClientDBStore();
const threadInfosFromDB =
threadStoreOpsHandlers.translateClientDBData(threads);
@@ -222,6 +224,8 @@
integrityStoreOpsHandlers.translateClientDBData(
integrityThreadHashes,
);
+ const syncedMetadataFromDB =
+ syncedMetadataStoreOpsHandlers.translateClientDBData(syncedMetadata);
dispatch({
type: setClientDBStoreActionType,
@@ -236,6 +240,7 @@
keyserverInfos: keyserverInfosFromDB,
communities: communityInfosFromDB,
threadHashes: threadHashesFromDB,
+ syncedMetadata: syncedMetadataFromDB,
},
});
} catch (setStoreException) {
diff --git a/web/shared-worker/utils/store.js b/web/shared-worker/utils/store.js
--- a/web/shared-worker/utils/store.js
+++ b/web/shared-worker/utils/store.js
@@ -80,6 +80,14 @@
),
};
}
+ if (data?.store?.syncedMetadata) {
+ result = {
+ ...result,
+ syncedMetadata: syncedMetadataStoreOpsHandlers.translateClientDBData(
+ data.store.syncedMetadata,
+ ),
+ };
+ }
return result;
}

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 3, 12:51 PM (21 h, 20 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2611517
Default Alt Text
D11424.id38406.diff (1 KB)

Event Timeline