From 4ab93d52285bf072cea05ceac5333a1587c9980b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 7 May 2024 12:55:09 +0300 Subject: ME_DB_EVENT_SETJSON - separate event fired when only the JSON part of event is changed --- plugins/Dbx_sqlite/src/dbevents.cpp | 2 +- plugins/NewStory/src/main.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/Dbx_sqlite/src/dbevents.cpp b/plugins/Dbx_sqlite/src/dbevents.cpp index 0d41744ba3..38a3546098 100644 --- a/plugins/Dbx_sqlite/src/dbevents.cpp +++ b/plugins/Dbx_sqlite/src/dbevents.cpp @@ -378,7 +378,7 @@ int CDbxSQLite::SetEventJson(MEVENT hDbEvent, const char *szSetting, DBVARIANT * if (cc->IsSub()) hContact = cc->parentID; - NotifyEventHooks(g_hevEventEdited, hContact, hDbEvent); + NotifyEventHooks(g_hevEventSetJson, hContact, hDbEvent); } return 0; } diff --git a/plugins/NewStory/src/main.cpp b/plugins/NewStory/src/main.cpp index a74019cffb..705dcccdb5 100644 --- a/plugins/NewStory/src/main.cpp +++ b/plugins/NewStory/src/main.cpp @@ -195,6 +195,7 @@ int CMPlugin::Load() HookEvent(ME_DB_EVENT_ADDED, evtEventAdded); HookEvent(ME_DB_EVENT_DELETED, evtEventDeleted); HookEvent(ME_DB_EVENT_EDITED, evtEventEdited); + HookEvent(ME_DB_EVENT_SETJSON, evtEventEdited); HookEvent(ME_OPT_INITIALISE, OptionsInitialize); HookEvent(ME_SYSTEM_MODULESLOADED, evtModulesLoaded); HookEvent(ME_SYSTEM_PRESHUTDOWN, evtPreShutdown); -- cgit v1.2.3