summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorElzorFox <elzorfox@ya.ru>2018-10-16 11:11:20 +0500
committerElzorFox <elzorfox@ya.ru>2018-10-16 11:11:20 +0500
commite4df28b4a013cc44febf9ee9075c7601d8ed857d (patch)
tree5c788c3f18926760e49dce58ba5d84e31d1240e1 /plugins
parent6d45513e046c47799219630158c8e3b50f40f3f1 (diff)
dbx_mdbx: fix return value for db_event_edit
mir_app: fix adding messages with IDs that were deleted earlier
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Dbx_mdbx/src/dbevents.cpp4
1 files changed, 2 insertions, 2 deletions
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)