diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Db3x_mmap/src/dbevents.cpp | 3 | ||||
-rw-r--r-- | plugins/Dbx_mdbx/src/dbevents.cpp | 2 | ||||
-rwxr-xr-x | plugins/Dbx_sqlite/src/dbevents.cpp | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/plugins/Db3x_mmap/src/dbevents.cpp b/plugins/Db3x_mmap/src/dbevents.cpp index 8e64963ac7..a49e9ebbfb 100644 --- a/plugins/Db3x_mmap/src/dbevents.cpp +++ b/plugins/Db3x_mmap/src/dbevents.cpp @@ -140,6 +140,9 @@ MEVENT CDb3Mmap::AddEvent(MCONTACT contactID, const DBEVENTINFO *dbei) }
neednotify = true;
}
+ else if (dbe.flags & DBEF_TEMPORARY) {
+ neednotify = false;
+ }
else neednotify = m_safetyMode;
if (ccSub != nullptr) {
diff --git a/plugins/Dbx_mdbx/src/dbevents.cpp b/plugins/Dbx_mdbx/src/dbevents.cpp index 6a7592a781..b534706b25 100644 --- a/plugins/Dbx_mdbx/src/dbevents.cpp +++ b/plugins/Dbx_mdbx/src/dbevents.cpp @@ -245,7 +245,7 @@ bool CDbxMDBX::EditEvent(MCONTACT contactID, MEVENT hDbEvent, const DBEVENTINFO DBFlush();
// Notify only in safe mode or on really new events
- if (m_safetyMode)
+ if (m_safetyMode && !(dbei->flags & DBEF_TEMPORARY))
NotifyEventHooks(bNew ? g_hevEventAdded : g_hevEventEdited, contactNotifyID, hDbEvent);
return true;
diff --git a/plugins/Dbx_sqlite/src/dbevents.cpp b/plugins/Dbx_sqlite/src/dbevents.cpp index 62de7b8394..bb76739baa 100755 --- a/plugins/Dbx_sqlite/src/dbevents.cpp +++ b/plugins/Dbx_sqlite/src/dbevents.cpp @@ -201,7 +201,7 @@ MEVENT CDbxSQLite::AddEvent(MCONTACT hContact, const DBEVENTINFO *dbei) m_modules.insert(mir_strdup(dbei->szModule)); } - if (m_safetyMode) + if (m_safetyMode && !(dbei->flags & DBEF_TEMPORARY)) NotifyEventHooks(g_hevEventAdded, hNotifyContact, (LPARAM)hDbEvent); return hDbEvent; |