diff options
Diffstat (limited to 'plugins/TabSRMM/src/globals.cpp')
-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));
}
}
}
|