From 54863ca6a409c7b2f56e0f81ff2a0830c4ef855d Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Tue, 5 Oct 2021 11:35:33 +0300 Subject: [PATCH] fix group email account keep unread --- application/Espo/Services/InboundEmail.php | 1 - 1 file changed, 1 deletion(-) diff --git a/application/Espo/Services/InboundEmail.php b/application/Espo/Services/InboundEmail.php index e25da35bac..5532e9ef58 100644 --- a/application/Espo/Services/InboundEmail.php +++ b/application/Espo/Services/InboundEmail.php @@ -399,7 +399,6 @@ class InboundEmail extends RecordService implements if ($emailAccount->get('keepFetchedEmailsUnread')) { if ( is_array($flags) && - count($flags) && empty($flags[Storage::FLAG_SEEN]) ) { unset($flags[Storage::FLAG_RECENT]);