From 2b430b7ac974fe029babe18990656af3e917182c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 21 May 2023 15:38:21 +0300 Subject: code cleaning --- plugins/TabSRMM/src/globals.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'plugins/TabSRMM/src') diff --git a/plugins/TabSRMM/src/globals.cpp b/plugins/TabSRMM/src/globals.cpp index 76797f910f..e78f4aa48c 100644 --- a/plugins/TabSRMM/src/globals.cpp +++ b/plugins/TabSRMM/src/globals.cpp @@ -447,12 +447,9 @@ void CGlobals::RestoreUnreadMessageAlerts(void) if (Proto_GetBaseAccountName(hContact) == nullptr) continue; - if (!dbei.markedRead() && dbei.eventType == EVENTTYPE_MESSAGE) { - if (Srmm_FindWindow(hContact) != nullptr) - continue; - - arEvents.insert(new MSavedEvent(hContact, hDbEvent)); - } + if (!dbei.markedRead() && dbei.eventType == EVENTTYPE_MESSAGE) + if (!Srmm_FindWindow(hContact)) + arEvents.insert(new MSavedEvent(hContact, hDbEvent)); } } } -- cgit v1.2.3