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/TabSRMM/src/globals.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/TabSRMM/src/globals.cpp') diff --git a/plugins/TabSRMM/src/globals.cpp b/plugins/TabSRMM/src/globals.cpp index e48a705a71..04dc12876e 100644 --- a/plugins/TabSRMM/src/globals.cpp +++ b/plugins/TabSRMM/src/globals.cpp @@ -467,6 +467,8 @@ void CGlobals::RestoreUnreadMessageAlerts(void) DBEVENTINFO dbei = {}; if (db_event_get(hDbEvent, &dbei)) continue; + if (Proto_GetBaseAccountName(hContact) == nullptr) + continue; if (!dbei.markedRead() && dbei.eventType == EVENTTYPE_MESSAGE) { if (Srmm_FindWindow(hContact) != nullptr) -- cgit v1.2.3