summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-05-21 15:38:21 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-05-21 15:38:21 +0300
commit2b430b7ac974fe029babe18990656af3e917182c (patch)
tree5216cba64be8c7d04b76f1081899c3d9f740c298 /plugins/TabSRMM/src
parenteffcbc54d4d51a461fe4a7678b9db4303653c946 (diff)
code cleaning
Diffstat (limited to 'plugins/TabSRMM/src')
-rw-r--r--plugins/TabSRMM/src/globals.cpp9
1 files changed, 3 insertions, 6 deletions
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));
}
}
}