summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-12-22 17:55:36 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-12-22 17:55:36 +0300
commitaf546e2f55ccb9a270ce4967d1942aebfcbbea19 (patch)
treefc15b7c1616f190637989534918687cf17403274 /plugins/TabSRMM/src
parent7f2ed0ff4588043500b739e151c4db73e5e2968e (diff)
DB::EventInfo::wipeNotify - useful helper to hide blinking event both from database & contact list
Diffstat (limited to 'plugins/TabSRMM/src')
-rw-r--r--plugins/TabSRMM/src/msglog.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/TabSRMM/src/msglog.cpp b/plugins/TabSRMM/src/msglog.cpp
index 352063b2dd..2ae3bd5186 100644
--- a/plugins/TabSRMM/src/msglog.cpp
+++ b/plugins/TabSRMM/src/msglog.cpp
@@ -570,11 +570,8 @@ bool CLogWindow::CreateRtfEvent(RtfLogStreamData *streamData, DB::EventInfo &dbe
BOOL isSent = (dbei.flags & DBEF_SENT);
BOOL bIsStatusChangeEvent = IsStatusEvent(dbei.eventType);
- if (!isSent && bIsStatusChangeEvent) {
- if (!dbei.markedRead())
- db_event_markRead(streamData->hContact, streamData->hDbEvent);
- Clist_RemoveEvent(-1, streamData->hDbEvent);
- }
+ if (!isSent && bIsStatusChangeEvent)
+ dbei.wipeNotify(streamData->hDbEvent);
CMStringW msg(ptrW(DbEvent_GetTextW(&dbei, CP_UTF8)));
if (msg.IsEmpty())