mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
fix(MainDb): use commit on deleteEvent
This commit is contained in:
parent
223b1244e7
commit
e3cf0be408
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue