From 48acee3c1efbcd65b7c32358e8f36d513dc07101 Mon Sep 17 00:00:00 2001 From: hadi Date: Fri, 24 Mar 2023 14:44:58 +0100 Subject: [PATCH] Fix mail mark as read eventhough it's not running in pane preview mode --- mail/js/app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mail/js/app.js b/mail/js/app.js index c54a161370..19ea931b68 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -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);