Commit 9dcc3375 authored by Ronan Abhamon's avatar Ronan Abhamon

fix(src/components/chat/ChatModel): add a workaround when messages are loaded...

fix(src/components/chat/ChatModel): add a workaround when messages are loaded (force status to ChatMessageStateDelivered if necessary)
parent 2be59c99
......@@ -248,6 +248,11 @@ void ChatModel::setSipAddress (const QString &sip_address) {
QVariantMap map;
fillMessageEntry(map, message);
// TODO: Remove me in a future linphone core version.
if (message->getState() == linphone::ChatMessageStateInProgress)
map["status"] = linphone::ChatMessageStateDelivered;
m_entries << qMakePair(map, static_pointer_cast<void>(message));
}
......
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