From e4df28b4a013cc44febf9ee9075c7601d8ed857d Mon Sep 17 00:00:00 2001 From: ElzorFox Date: Tue, 16 Oct 2018 11:11:20 +0500 Subject: dbx_mdbx: fix return value for db_event_edit mir_app: fix adding messages with IDs that were deleted earlier --- plugins/Dbx_mdbx/src/dbevents.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/Dbx_mdbx/src') diff --git a/plugins/Dbx_mdbx/src/dbevents.cpp b/plugins/Dbx_mdbx/src/dbevents.cpp index c62893e8d3..230b5170d1 100644 --- a/plugins/Dbx_mdbx/src/dbevents.cpp +++ b/plugins/Dbx_mdbx/src/dbevents.cpp @@ -143,12 +143,12 @@ BOOL CDbxMDBX::EditEvent(MCONTACT contactID, MEVENT hDbEvent, DBEVENTINFO *dbei) MDBX_val key = { &hDbEvent, sizeof(MEVENT) }, data; if (mdbx_get(txn, m_dbEvents, &key, &data) != MDBX_SUCCESS) return 1; - + DBEvent *dbe = (DBEvent*)data.iov_base; dbei->timestamp = dbe->timestamp; } - return EditEvent(contactID, hDbEvent, dbei, false); + return !EditEvent(contactID, hDbEvent, dbei, false); } bool CDbxMDBX::EditEvent(MCONTACT contactID, MEVENT hDbEvent, DBEVENTINFO *dbei, bool bNew) -- cgit v1.2.3