Cache: Do not remember selected folder
This commit is contained in:
parent
23e9754b9d
commit
814f920d57
@ -114,7 +114,6 @@ function updateCache() {
|
|||||||
'authNearestCountry',
|
'authNearestCountry',
|
||||||
'currentUserId',
|
'currentUserId',
|
||||||
'contactList',
|
'contactList',
|
||||||
'chatFolders',
|
|
||||||
'topPeers',
|
'topPeers',
|
||||||
'recentEmojis',
|
'recentEmojis',
|
||||||
'emojiKeywords',
|
'emojiKeywords',
|
||||||
@ -128,6 +127,7 @@ function updateCache() {
|
|||||||
recentlyFoundChatIds: global.globalSearch.recentlyFoundChatIds,
|
recentlyFoundChatIds: global.globalSearch.recentlyFoundChatIds,
|
||||||
},
|
},
|
||||||
settings: reduceSettings(global),
|
settings: reduceSettings(global),
|
||||||
|
chatFolders: reduceChatFolders(global),
|
||||||
};
|
};
|
||||||
|
|
||||||
const json = JSON.stringify(reducedGlobal);
|
const json = JSON.stringify(reducedGlobal);
|
||||||
@ -222,3 +222,10 @@ function reduceSettings(global: GlobalState): GlobalState['settings'] {
|
|||||||
notifyExceptions: {},
|
notifyExceptions: {},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function reduceChatFolders(global: GlobalState): GlobalState['chatFolders'] {
|
||||||
|
return {
|
||||||
|
...global.chatFolders,
|
||||||
|
activeChatFolder: 0,
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user