mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-07 14:44:01 +00:00
fix(src/components/chat/ChatModel): add a workaround when messages are loaded (force status to ChatMessageStateDelivered if necessary)
This commit is contained in:
parent
2be59c9910
commit
9dcc33759c
1 changed files with 5 additions and 0 deletions
|
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue