diff options
author | George Hazan <george.hazan@gmail.com> | 2023-07-24 19:59:05 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-07-24 19:59:05 +0300 |
commit | 0bb5a6b57b308c1bd7463e767c6b0dc05acf7571 (patch) | |
tree | 452ab2a50b2893dffaad27c333dbd3780565d40c /plugins/Dbx_sqlite/src/dbevents.cpp | |
parent | 96ac0b0639e1c6396cb084349f9361a1c34ddb57 (diff) |
disk file to be deleted when an event containing it is being removed
Diffstat (limited to 'plugins/Dbx_sqlite/src/dbevents.cpp')
-rw-r--r-- | plugins/Dbx_sqlite/src/dbevents.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Dbx_sqlite/src/dbevents.cpp b/plugins/Dbx_sqlite/src/dbevents.cpp index 70f3a6e740..73baf8389c 100644 --- a/plugins/Dbx_sqlite/src/dbevents.cpp +++ b/plugins/Dbx_sqlite/src/dbevents.cpp @@ -220,6 +220,8 @@ BOOL CDbxSQLite::DeleteEvent(MEVENT hDbEvent) if (cc == nullptr)
return 1;
+ NotifyEventHooks(g_hevEventDeleted, hContact, hDbEvent);
+
mir_cslockfull lock(m_csDbAccess);
int rc = DeleteEventMain(hDbEvent);
if (rc != SQLITE_DONE)
@@ -237,7 +239,6 @@ BOOL CDbxSQLite::DeleteEvent(MEVENT hDbEvent) lock.unlock();
DBFlush();
- NotifyEventHooks(g_hevEventDeleted, hContact, hDbEvent);
return 0;
}
|