summaryrefslogtreecommitdiff
path: root/protocols/VKontakte/src/misc.cpp
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 /protocols/VKontakte/src/misc.cpp
parent7f2ed0ff4588043500b739e151c4db73e5e2968e (diff)
DB::EventInfo::wipeNotify - useful helper to hide blinking event both from database & contact list
Diffstat (limited to 'protocols/VKontakte/src/misc.cpp')
-rw-r--r--protocols/VKontakte/src/misc.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/protocols/VKontakte/src/misc.cpp b/protocols/VKontakte/src/misc.cpp
index 977e215386..6c5dcc8341 100644
--- a/protocols/VKontakte/src/misc.cpp
+++ b/protocols/VKontakte/src/misc.cpp
@@ -888,14 +888,11 @@ void CVkProto::MarkDialogAsRead(MCONTACT hContact)
return;
MEVENT hDBEvent = db_event_firstUnread(hContact);
- MCONTACT hMContact = db_mc_tryMeta(hContact);
while (hDBEvent != 0) {
DBEVENTINFO dbei = {};
if (!db_event_get(hDBEvent, &dbei) && !mir_strcmp(m_szModuleName, dbei.szModule)) {
db_event_markRead(hContact, hDBEvent, true);
- Clist_RemoveEvent(hMContact, hDBEvent);
- if (hContact != hMContact)
- Clist_RemoveEvent(hContact, hDBEvent);
+ Clist_RemoveEvent(-1, hDBEvent);
}
hDBEvent = db_event_next(hContact, hDBEvent);