summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/globals.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-01-07 15:30:27 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-01-07 15:30:27 +0300
commit6984f16b63161b21ee76df0fb93ef39de4b925b1 (patch)
tree29893b1e619fb8fd970a3feac1dbaa8f0b890aa8 /plugins/TabSRMM/src/globals.cpp
parentfec1058c1cfc1d0d1459c7d030458608ae333c26 (diff)
we don't have to restore unread events from blocked accounts
Diffstat (limited to 'plugins/TabSRMM/src/globals.cpp')
-rw-r--r--plugins/TabSRMM/src/globals.cpp2
1 files changed, 2 insertions, 0 deletions
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)