summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-03-09 19:07:04 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-03-09 19:07:04 +0300
commit9417dafded645981c314e73884c2dcca6a6a27ed (patch)
tree411d6bff787c38efcb4293b83f3964e737f8b3a5 /protocols
parentfabe33ee70142ddadacedb205a38b2b902e7b2c4 (diff)
added event for event deletion
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Discord/src/dispatch.cpp2
-rw-r--r--protocols/VKontakte/src/vk_history.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Discord/src/dispatch.cpp b/protocols/Discord/src/dispatch.cpp
index d0619f3c02..149d0339a0 100644
--- a/protocols/Discord/src/dispatch.cpp
+++ b/protocols/Discord/src/dispatch.cpp
@@ -457,7 +457,7 @@ void CDiscordProto::OnCommandMessageDelete(const JSONNode &pRoot)
if (!msgid.IsEmpty()) {
MEVENT hEvent = db_event_getById(m_szModuleName, msgid);
if (hEvent)
- db_event_delete(hEvent);
+ db_event_delete(hEvent, true);
}
}
diff --git a/protocols/VKontakte/src/vk_history.cpp b/protocols/VKontakte/src/vk_history.cpp
index 00457abd62..559c31c98d 100644
--- a/protocols/VKontakte/src/vk_history.cpp
+++ b/protocols/VKontakte/src/vk_history.cpp
@@ -303,7 +303,7 @@ void CVkProto::OnReceiveHistoryMessages(NETLIBHTTPREQUEST *reply, AsyncHttpReque
MEVENT hDbEvent = db_event_getById(m_szModuleName, strcat(szMid, "_"));
if (hDbEvent)
- db_event_delete(hDbEvent);
+ db_event_delete(hDbEvent, true);
if (isRead && isOut && datetime > tLastReadMessageTime)
tLastReadMessageTime = datetime;