From 38b24044db30c606e9bb3ebe0849b16c9fdc6e62 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 6 Sep 2023 15:14:07 +0300 Subject: fixes #3667 (Telegram: add message edit feature) --- include/m_database.h | 2 +- include/m_protoint.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/m_database.h b/include/m_database.h index e227badc18..d21537fc8d 100644 --- a/include/m_database.h +++ b/include/m_database.h @@ -293,7 +293,7 @@ EXTERN_C MIR_CORE_DLL(int) db_event_delete(MEVENT hDbEvent, bool bFromServer = f // Edits an event in the database // Returns 0 on success, or nonzero on error -EXTERN_C MIR_CORE_DLL(int) db_event_edit(MEVENT hDbEvent, const DBEVENTINFO *dbei); +EXTERN_C MIR_CORE_DLL(int) db_event_edit(MEVENT hDbEvent, const DBEVENTINFO *dbei, bool bFromServer = false); // Tries to find an event by its id if present // if an event is found, it's edited, otherwise a new event is added diff --git a/include/m_protoint.h b/include/m_protoint.h index 693656bb0d..2c1a7ffe53 100644 --- a/include/m_protoint.h +++ b/include/m_protoint.h @@ -270,7 +270,7 @@ public: virtual void OnEventDeleted(MCONTACT, MEVENT); // called when an event is altered in database - virtual void OnEventEdited(MCONTACT, MEVENT); + virtual void OnEventEdited(MCONTACT, MEVENT, const DBEVENTINFO &dbei); // called when an account gets physically removed from the database virtual void OnErase(); -- cgit v1.2.3