Fix mail mark as read eventhough it's not running in pane preview mode

This commit is contained in:
hadi 2023-03-24 14:44:58 +01:00
parent fc54b588c0
commit c0ed247511

View File

@ -1138,6 +1138,9 @@ app.classes.mail = AppJS.extend(
let attachmentsBlock = this.et2.getWidgetById('attachmentsBlock');
let mailPreview = this.et2.getWidgetById('mailPreview');
let previewPane = this.egw.preference('previewPane', 'mail');
// don't go further if the preview is supposed to be disabled and we're not in mobile view
if (previewPane == 'hide' && !egwIsMobile()) return;
if(typeof selected != 'undefined' && selected.length == 1)
{
rowId = this.mail_fetchCurrentlyFocussed(selected);