From 0b0f70e96e0ecd8a16fc41db4198903a0996a8ea Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Sat, 12 Jun 2021 19:53:37 +0300 Subject: [PATCH] Remove debug info (#1151) --- src/global/cache.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/global/cache.ts b/src/global/cache.ts index 573c24056..2f6294f68 100644 --- a/src/global/cache.ts +++ b/src/global/cache.ts @@ -72,7 +72,7 @@ function readCache(initialState: GlobalState) { } if (cached) { - // Pre-fill defaults for new settings which may be missing in older cache + // Pre-fill defaults in nested objects which may be missing in older cache cached.settings.byKey = { ...initialState.settings.byKey, ...cached.settings.byKey, @@ -81,6 +81,10 @@ function readCache(initialState: GlobalState) { ...initialState.settings.themes, ...cached.settings.themes, }; + cached.chatFolders = { + ...initialState.chatFolders, + ...cached.chatFolders, + }; } return {