From 09a49cfe0925494f7fd516657df7fe327c7370dd Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 3 Jan 2024 19:15:44 +0300 Subject: =?UTF-8?q?fixes=20#3946=20(=D0=9F=D1=80=D0=BE=D0=B3=D1=80=D0=B5?= =?UTF-8?q?=D1=81=D1=81=20=D1=81=D0=BA=D0=B0=D1=87=D0=B8=D0=B2=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F=20=D0=BA=D1=80=D1=83=D0=BF=D0=BD=D1=8B=D1=85=20?= =?UTF-8?q?=D1=84=D0=B0=D0=B9=D0=BB=D0=BE=D0=B2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/Dbx_sqlite/src/dbevents.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'plugins/Dbx_sqlite/src/dbevents.cpp') diff --git a/plugins/Dbx_sqlite/src/dbevents.cpp b/plugins/Dbx_sqlite/src/dbevents.cpp index 3d26ec28c5..81fc24fa39 100644 --- a/plugins/Dbx_sqlite/src/dbevents.cpp +++ b/plugins/Dbx_sqlite/src/dbevents.cpp @@ -368,6 +368,15 @@ int CDbxSQLite::SetEventJson(MEVENT hDbEvent, const char *szSetting, DBVARIANT * } DBFlush(); + + if (m_safetyMode) { + MCONTACT hContact = GetEventContact(hDbEvent); + if (auto *cc = m_cache->GetCachedContact(hContact)) + if (cc->IsSub()) + hContact = cc->parentID; + + NotifyEventHooks(g_hevEventEdited, hContact, hDbEvent); + } return 0; } -- cgit v1.2.3