Commit e3cf0be4 authored by Ronan's avatar Ronan

fix(MainDb): use commit on deleteEvent

parent 223b1244
......@@ -1370,7 +1370,6 @@ void MainDbPrivate::importLegacyHistory (DbSession &inDbSession) {
if (state != int(ChatMessage::State::Displayed))
insertChatMessageParticipant(eventId, remoteSipAddressId, state);
}
tr.commit();
lInfo() << "Successful import of legacy messages.";
};
......@@ -1876,6 +1875,8 @@ bool MainDb::deleteEvent (const shared_ptr<const EventLog> &eventLog) {
eventLog
)->getChatMessage()->getPrivate()->dbKey = MainDbChatMessageKey();
tr.commit();
return true;
};
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment