Do not cache right column open state on mobile
This commit is contained in:
parent
0aada67149
commit
4a397ad233
@ -40,6 +40,7 @@ import { isUserId } from './helpers';
|
|||||||
import { getOrderedIds } from '../util/folderManager';
|
import { getOrderedIds } from '../util/folderManager';
|
||||||
import { clearGlobalForLockScreen } from './reducers';
|
import { clearGlobalForLockScreen } from './reducers';
|
||||||
import { encryptSession } from '../util/passcode';
|
import { encryptSession } from '../util/passcode';
|
||||||
|
import { getIsMobile } from '../hooks/useAppLayout';
|
||||||
|
|
||||||
const UPDATE_THROTTLE = 5000;
|
const UPDATE_THROTTLE = 5000;
|
||||||
|
|
||||||
@ -409,22 +410,22 @@ export function serializeGlobal<T extends GlobalState>(global: T) {
|
|||||||
'serviceNotifications',
|
'serviceNotifications',
|
||||||
'attachmentSettings',
|
'attachmentSettings',
|
||||||
'leftColumnWidth',
|
'leftColumnWidth',
|
||||||
'lastIsChatInfoShown',
|
|
||||||
'archiveSettings',
|
'archiveSettings',
|
||||||
'mediaViewer',
|
'mediaViewer',
|
||||||
'audioPlayer',
|
'audioPlayer',
|
||||||
'shouldShowContextMenuHint',
|
'shouldShowContextMenuHint',
|
||||||
|
'trustedBotIds',
|
||||||
|
'recentlyFoundChatIds',
|
||||||
]),
|
]),
|
||||||
|
lastIsChatInfoShown: !getIsMobile() ? global.lastIsChatInfoShown : undefined,
|
||||||
customEmojis: reduceCustomEmojis(global),
|
customEmojis: reduceCustomEmojis(global),
|
||||||
users: reduceUsers(global),
|
users: reduceUsers(global),
|
||||||
chats: reduceChats(global),
|
chats: reduceChats(global),
|
||||||
messages: reduceMessages(global),
|
messages: reduceMessages(global),
|
||||||
recentlyFoundChatIds: global.recentlyFoundChatIds,
|
|
||||||
settings: reduceSettings(global),
|
settings: reduceSettings(global),
|
||||||
chatFolders: reduceChatFolders(global),
|
chatFolders: reduceChatFolders(global),
|
||||||
groupCalls: reduceGroupCalls(global),
|
groupCalls: reduceGroupCalls(global),
|
||||||
availableReactions: reduceAvailableReactions(global),
|
availableReactions: reduceAvailableReactions(global),
|
||||||
trustedBotIds: global.trustedBotIds,
|
|
||||||
passcode: pick(global.passcode, [
|
passcode: pick(global.passcode, [
|
||||||
'isScreenLocked',
|
'isScreenLocked',
|
||||||
'hasPasscode',
|
'hasPasscode',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user