Bugfix: ask unload when mobile and message visible

This commit is contained in:
the-djmaze 2023-03-20 15:21:56 +01:00
parent 470da2ee15
commit 45be0d7aa8
3 changed files with 5 additions and 7 deletions

View file

@ -566,11 +566,9 @@ export class MailMessageList extends AbstractViewRight {
// initMailboxLayoutResizer
const top = dom.querySelector('.messageList'),
fToggle = () => {
let layout = SettingsUserStore.layout();
let layout = SettingsUserStore.usePreviewPane();
setLayoutResizer(top, ClientSideKeyNameMessageListSize,
(ThemeStore.isMobile() || !layout)
? 0
: (Layout.SidePreview === layout ? 'Width' : 'Height')
layout ? (Layout.SidePreview === layout ? 'Width' : 'Height') : 0
);
};
if (top) {