diff options
author | George Hazan <george.hazan@gmail.com> | 2023-09-06 15:14:07 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-09-06 15:14:07 +0300 |
commit | 38b24044db30c606e9bb3ebe0849b16c9fdc6e62 (patch) | |
tree | af2822805df50b5f3cc18abc2d709ace3140342d /include | |
parent | 5e232971e1eb3a0ce665a3e34b982db49676e653 (diff) |
fixes #3667 (Telegram: add message edit feature)
Diffstat (limited to 'include')
-rw-r--r-- | include/m_database.h | 2 | ||||
-rw-r--r-- | include/m_protoint.h | 2 |
2 files changed, 2 insertions, 2 deletions
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();
|