diff --git a/web/redux/persist.js b/web/redux/persist.js --- a/web/redux/persist.js +++ b/web/redux/persist.js @@ -22,6 +22,7 @@ defaultConnectionInfo, type ConnectionInfo, } from 'lib/types/socket-types.js'; +import { defaultGlobalThemeInfo } from 'lib/types/theme-types.js'; import { isDev } from 'lib/utils/dev-utils.js'; import { generateIDSchemaMigrationOpsForDrafts, @@ -134,6 +135,10 @@ ...state, integrityStore: { threadHashes: {}, threadHashingStatus: 'starting' }, }), + [7]: async state => ({ + ...state, + globalThemeInfo: defaultGlobalThemeInfo, + }), }; const persistWhitelist = [ @@ -143,6 +148,7 @@ 'notifPermissionAlertInfo', 'commServicesAccessToken', 'keyserverStore', + 'globalThemeInfo', ]; const rootKey = 'root'; @@ -246,7 +252,7 @@ { debug: isDev }, migrateStorageToSQLite, ): any), - version: 6, + version: 7, transforms: [keyserverStoreTransform], };