This commit is contained in:
the-djmaze 2022-03-22 11:47:17 +01:00
parent 40a0391092
commit 13f270f426
9 changed files with 75 additions and 90 deletions

View file

@ -9,7 +9,8 @@ import { UNUSED_OPTION_VALUE } from 'Common/Consts';
import { doc, leftPanelDisabled, moveAction,
Settings, SettingsCapa, SettingsGet,
addEventsListeners,
addShortcut, registerShortcut, formFieldFocused
addShortcut, registerShortcut, formFieldFocused,
isFullscreen, toggleFullscreen
} from 'Common/Globals';
import { computedPaginatorHelper, showMessageComposer, populateMessageBody } from 'Common/UtilsUser';
@ -699,7 +700,7 @@ export class MailMessageList extends AbstractViewRight {
return false;
}
if (MessageUserStore.message() && this.useAutoSelect()) {
MessageUserStore.toggleFullScreen();
isFullscreen() || toggleFullscreen();
return false;
}
});