From 6984f16b63161b21ee76df0fb93ef39de4b925b1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 7 Jan 2021 15:30:27 +0300 Subject: we don't have to restore unread events from blocked accounts --- plugins/Scriver/src/msgs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/Scriver/src') diff --git a/plugins/Scriver/src/msgs.cpp b/plugins/Scriver/src/msgs.cpp index 13b4b28b8b..30632696d1 100644 --- a/plugins/Scriver/src/msgs.cpp +++ b/plugins/Scriver/src/msgs.cpp @@ -251,7 +251,7 @@ static void RestoreUnreadMessageAlerts(void) dbei.cbBlob = 0; if (db_event_get(hDbEvent, &dbei)) continue; - if ((dbei.flags & (DBEF_SENT | DBEF_READ)) || !DbEventIsMessageOrCustom(&dbei)) + if (dbei.markedRead() || !DbEventIsMessageOrCustom(&dbei) || !Proto_GetBaseAccountName(hContact)) continue; int windowAlreadyExists = Srmm_FindWindow(hContact) != nullptr; -- cgit v1.2.3