diff --git a/web/redux/persist.js b/web/redux/persist.js --- a/web/redux/persist.js +++ b/web/redux/persist.js @@ -23,6 +23,7 @@ defaultConnectionInfo, type ConnectionInfo, } from 'lib/types/socket-types.js'; +import { defaultGlobalThemeInfo } from 'lib/types/theme-types.js'; import { parseCookies } from 'lib/utils/cookie-utils.js'; import { isDev } from 'lib/utils/dev-utils.js'; import { @@ -163,6 +164,10 @@ }, }; }, + [8]: async state => ({ + ...state, + globalThemeInfo: defaultGlobalThemeInfo, + }), }; const persistWhitelist = [ @@ -172,6 +177,7 @@ 'notifPermissionAlertInfo', 'commServicesAccessToken', 'keyserverStore', + 'globalThemeInfo', ]; const rootKey = 'root'; @@ -275,7 +281,7 @@ { debug: isDev }, migrateStorageToSQLite, ): any), - version: 7, + version: 8, transforms: [keyserverStoreTransform], };