mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-27 16:09:20 +00:00
fix(MainDb): ensure contents are loaded before add event
This commit is contained in:
parent
9767adccc8
commit
de8c673f38
1 changed files with 3 additions and 0 deletions
|
|
@ -762,6 +762,9 @@ void ChatMessagePrivate::storeInDb () {
|
|||
updateInDb();
|
||||
} else {
|
||||
shared_ptr<EventLog> eventLog = make_shared<ConferenceChatMessageEvent>(time, q->getSharedFromThis());
|
||||
|
||||
// Avoid transaction in transaction if contents are not loaded.
|
||||
loadContentsFromDatabase();
|
||||
q->getChatRoom()->getPrivate()->addEvent(eventLog);
|
||||
|
||||
if (direction == ChatMessage::Direction::Incoming) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue