diff --git a/linphone-desktop/src/components/chat/ChatModel.cpp b/linphone-desktop/src/components/chat/ChatModel.cpp index a0c802ef2..31a7a4643 100644 --- a/linphone-desktop/src/components/chat/ChatModel.cpp +++ b/linphone-desktop/src/components/chat/ChatModel.cpp @@ -518,6 +518,18 @@ void ChatModel::removeEntry (ChatEntryData &pair) { } void ChatModel::insertCall (const shared_ptr &callLog) { + linphone::CallStatus status = callLog->getStatus(); + + switch (status) { + case linphone::CallStatusAborted: + case linphone::CallStatusEarlyAborted: + return; // Ignore aborted calls. + case linphone::CallStatusSuccess: + case linphone::CallStatusMissed: + case linphone::CallStatusDeclined: + break; + } + auto insertEntry = [this]( const ChatEntryData &pair, const QList::iterator *start = NULL @@ -538,12 +550,6 @@ void ChatModel::insertCall (const shared_ptr &callLog) { return it; }; - linphone::CallStatus status = callLog->getStatus(); - - // Ignore aborted calls. - if (status == linphone::CallStatusAborted) - return; - // Add start call. QVariantMap start; fillCallStartEntry(start, callLog); diff --git a/linphone-desktop/ui/modules/Linphone/Calls/CallControls.qml b/linphone-desktop/ui/modules/Linphone/Calls/CallControls.qml index 474551d54..f6fb10281 100644 --- a/linphone-desktop/ui/modules/Linphone/Calls/CallControls.qml +++ b/linphone-desktop/ui/modules/Linphone/Calls/CallControls.qml @@ -35,6 +35,17 @@ Rectangle { onClicked: callControls.clicked() } + Icon { + id: signIcon + + anchors { + left: parent.left + top: parent.top + } + + iconSize: CallControlsStyle.signSize + } + RowLayout { anchors { fill: parent @@ -66,14 +77,4 @@ Rectangle { // --------------------------------------------------------------------------- - Icon { - id: signIcon - - anchors { - left: parent.left - top: parent.top - } - - iconSize: CallControlsStyle.signSize - } }