fix(src/components/chat/ChatModel): add a workaround when messages are loaded (force status to ChatMessageStateDelivered if necessary)

This commit is contained in:
Ronan Abhamon 2017-01-17 14:01:33 +01:00
parent 2be59c9910
commit 9dcc33759c

View file

@ -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));
}