diff --git a/src/calladapter.cpp b/src/calladapter.cpp index c765615070aee8b087b5286c5ce08ebcf27cd3b3..6f4236cd0188856fcd74755d37d8dd0a6c216b44 100644 --- a/src/calladapter.cpp +++ b/src/calladapter.cpp @@ -655,9 +655,6 @@ CallAdapter::updateCallOverlay(const lrc::api::conversation::Info& convInfo) bool isConferenceCall = !convInfo.confId.isEmpty() || (convInfo.confId.isEmpty() && call->participantsInfos.size() != 0); bool isGrid = call->layout == lrc::api::call::Layout::GRID; - auto bestName = convInfo.participants.isEmpty() - ? QString() - : accInfo.contactModel->bestNameForContact(convInfo.participants[0]); Q_EMIT updateOverlay(isPaused, isAudioOnly, @@ -666,8 +663,7 @@ CallAdapter::updateCallOverlay(const lrc::api::conversation::Info& convInfo) isRecording, accInfo.profileInfo.type == lrc::api::profile::Type::SIP, isConferenceCall, - isGrid, - bestName); + isGrid); } void diff --git a/src/calladapter.h b/src/calladapter.h index ef126a4d2ba12e8968252c8ba5cab5047ebbb951..00b7355c1f8e2a198c96ccc72eb1688d2bbe0204 100644 --- a/src/calladapter.h +++ b/src/calladapter.h @@ -100,8 +100,7 @@ Q_SIGNALS: bool isRecording, bool isSIP, bool isConferenceCall, - bool isGrid, - const QString& bestName); + bool isGrid); void remoteRecordingChanged(const QStringList& peers, bool state); void eraseRemoteRecording(); diff --git a/src/mainview/components/CallOverlay.qml b/src/mainview/components/CallOverlay.qml index ea4d3455b50b2369b27b9e710212da80cc9b7b0f..f5334aa5db2d0ad9226794742079a02eae3633de 100644 --- a/src/mainview/components/CallOverlay.qml +++ b/src/mainview/components/CallOverlay.qml @@ -46,8 +46,6 @@ Item { property bool isConferenceCall property bool isGrid - property string bestName: "" - signal chatButtonClicked ParticipantsLayer { @@ -187,8 +185,6 @@ Item { anchors.fill: parent - bestName: root.bestName - Connections { target: mainOverlay.callActionBar function onChatClicked() { root.chatButtonClicked() } diff --git a/src/mainview/components/MainOverlay.qml b/src/mainview/components/MainOverlay.qml index 3ea664357794e57a10fa4e8527b6142a1727e5de..bd306ba1022f4c71427e3b3aa4c2fedda6b910da 100644 --- a/src/mainview/components/MainOverlay.qml +++ b/src/mainview/components/MainOverlay.qml @@ -34,8 +34,6 @@ Item { property string timeText: "00:00" property string remoteRecordingLabel: "" - property string bestName: "" - property alias recordingVisible: recordingRect.visible property alias callActionBar: __callActionBar @@ -120,7 +118,7 @@ Item { text: { if (!root.isAudioOnly) { if (remoteRecordingLabel === "") { - return root.bestName + return CurrentConversation.title } else { return remoteRecordingLabel } diff --git a/src/mainview/components/OngoingCallPage.qml b/src/mainview/components/OngoingCallPage.qml index f128ece5f2d9f0132e069d65cd3645567fd8697a..2f2df58173bbf41e8db2b2da64d22f09ed42026b 100644 --- a/src/mainview/components/OngoingCallPage.qml +++ b/src/mainview/components/OngoingCallPage.qml @@ -33,8 +33,6 @@ Rectangle { id: root property var accountPeerPair: ["", ""] - property alias bestName: callOverlay.bestName - property string bestId: "Best Id" property variant clickPos: "1,1" property int previewMargin: 15 property int previewMarginYTop: previewMargin + 42 @@ -52,12 +50,6 @@ Rectangle { return contactImage.imageId = accountPeerPair[1] callOverlay.participantsLayer.update(CallAdapter.getConferencesInfos()) - - bestName = UtilsAdapter.getBestName(accountPeerPair[0], - accountPeerPair[1]) - var id = UtilsAdapter.getBestId(accountPeerPair[0], accountPeerPair[1]) - bestId = (bestName !== id) ? id : "" - root.callId = UtilsAdapter.getCallId(accountPeerPair[0], accountPeerPair[1]) } @@ -85,12 +77,6 @@ Rectangle { } function handleParticipantsInfo(infos) { - if (infos.length === 0) { - bestName = UtilsAdapter.getBestName(LRCInstance.currentAccountId, - LRCInstance.selectedConvUid) - } else { - bestName = "" - } callOverlay.participantsLayer.update(infos) } @@ -292,17 +278,17 @@ Rectangle { anchors.fill: parent function toggleConversation() { - inCallMessageWebViewStack.visible ? - closeInCallConversation() : - openInCallConversation() + if (inCallMessageWebViewStack.visible) + closeInCallConversation() + else + openInCallConversation() } Connections { target: CallAdapter function onUpdateOverlay(isPaused, isAudioOnly, isAudioMuted, isVideoMuted, - isRecording, isSIP, isConferenceCall, isGrid, - bestName) { + isRecording, isSIP, isConferenceCall, isGrid) { callOverlay.showOnHoldImage(isPaused) root.isAudioOnly = isAudioOnly audioCallPageRectCentralRect.visible = !isPaused && root.isAudioOnly @@ -310,7 +296,6 @@ Rectangle { isAudioMuted, isVideoMuted, isRecording, isSIP, isConferenceCall, isGrid) - root.bestName = bestName callOverlay.participantsLayer.update(CallAdapter.getConferencesInfos()) } @@ -375,22 +360,7 @@ Rectangle { horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignVCenter - text: root.bestName - elide: Text.ElideMiddle - color: "white" - } - - Text { - Layout.alignment: Qt.AlignCenter - Layout.topMargin: JamiTheme.preferredMarginSize - Layout.preferredWidth: root.width - - font.pointSize: JamiTheme.textFontSize - - horizontalAlignment: Text.AlignHCenter - verticalAlignment: Text.AlignVCenter - - text: root.bestId + text: CurrentConversation.title elide: Text.ElideMiddle color: "white" }