From 9dcc33759c9da34938a01a432d29674f921b28f3 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Tue, 17 Jan 2017 14:01:33 +0100 Subject: [PATCH] fix(src/components/chat/ChatModel): add a workaround when messages are loaded (force status to ChatMessageStateDelivered if necessary) --- tests/src/components/chat/ChatModel.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/src/components/chat/ChatModel.cpp b/tests/src/components/chat/ChatModel.cpp index 3a0504646..b82a258c7 100644 --- a/tests/src/components/chat/ChatModel.cpp +++ b/tests/src/components/chat/ChatModel.cpp @@ -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(message)); }