diff options
author | George Hazan <george.hazan@gmail.com> | 2023-05-21 15:38:21 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-05-21 15:38:21 +0300 |
commit | 2b430b7ac974fe029babe18990656af3e917182c (patch) | |
tree | 5216cba64be8c7d04b76f1081899c3d9f740c298 /plugins/TabSRMM/src | |
parent | effcbc54d4d51a461fe4a7678b9db4303653c946 (diff) |
code cleaning
Diffstat (limited to 'plugins/TabSRMM/src')
-rw-r--r-- | plugins/TabSRMM/src/globals.cpp | 9 |
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));
}
}
}
|