From f7035c38ae887d7c17755bbf65f7331fd357a681 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 31 May 2024 14:34:13 +0300 Subject: same fix for Scriver --- plugins/Scriver/src/msgs.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/Scriver/src') diff --git a/plugins/Scriver/src/msgs.cpp b/plugins/Scriver/src/msgs.cpp index 799dc68cec..a111e894bf 100644 --- a/plugins/Scriver/src/msgs.cpp +++ b/plugins/Scriver/src/msgs.cpp @@ -252,6 +252,9 @@ static void RestoreUnreadMessageAlerts(void) OBJLIST arEvents(10, NumericKeySortT); for (auto &hContact : Contacts()) { + if (Contact::IsGroupChat(hContact) || !Proto_GetBaseAccountName(hContact)) + continue; + for (MEVENT hDbEvent = db_event_firstUnread(hContact); hDbEvent; hDbEvent = db_event_next(hContact, hDbEvent)) { DB::EventInfo dbei(hDbEvent, false); if (!dbei) -- cgit v1.2.3