diff options
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/src/db.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mir_core/src/db.cpp b/src/mir_core/src/db.cpp index 57b22754c3..8fd08f873d 100644 --- a/src/mir_core/src/db.cpp +++ b/src/mir_core/src/db.cpp @@ -413,15 +413,15 @@ MIR_CORE_DLL(int) db_event_count(MCONTACT hContact) return (g_pCurrDb == nullptr) ? 0 : g_pCurrDb->GetEventCount(hContact);
}
-MIR_CORE_DLL(int) db_event_delete(MEVENT hDbEvent, bool bFromServer)
+MIR_CORE_DLL(int) db_event_delete(MEVENT hDbEvent, int flags)
{
if (g_pCurrDb == nullptr)
return 0;
- if (!bFromServer) {
+ if (!(flags & CDF_FROM_SERVER)) {
MCONTACT hContact = g_pCurrDb->GetEventContact(hDbEvent);
if (auto *ppro = Proto_GetInstance(hContact))
- ppro->OnEventDeleted(hContact, hDbEvent);
+ ppro->OnEventDeleted(hContact, hDbEvent, flags);
}
return g_pCurrDb->DeleteEvent(hDbEvent);
|