Fix changing avatar name on removing call.

This commit is contained in:
Julien Wadel 2022-09-06 10:29:00 +02:00
parent dad9cbecf2
commit cfa2205de4
3 changed files with 8 additions and 4 deletions

View file

@ -6,6 +6,7 @@ import UtilsCpp 1.0
import App.Styles 1.0
import 'qrc:/ui/scripts/Utils/utils.js' as Utils
// =============================================================================
Avatar {
@ -23,9 +24,7 @@ Avatar {
: null
property var _username: conferenceInfoModel
? conferenceInfoModel.subject
: call && call.conferenceModel
? call.conferenceModel.subject
: _sipAddressObserver
: _sipAddressObserver
? UtilsCpp.getDisplayName(_sipAddressObserver.peerAddress)
: ''
property bool isPaused: (call && (call.status === CallModel.CallStatusPaused)) || (participantDeviceModel && participantDeviceModel.isPaused) || false

View file

@ -56,9 +56,10 @@ Mosaic {
id: cameraView
anchors.fill: parent
callModel: index >= 0 ? participantDevices.callModel : null // do this before to prioritize changing call on remove
deactivateCamera: index <0 || !grid.cameraEnabled || grid.callModel.pausedByUser
currentDevice: gridModel.participantDevices.getAt(index)
callModel: participantDevices.callModel
isCameraFromDevice: true
isPaused: avatarCell.currentDevice && avatarCell.currentDevice.isPaused
showCloseButton: false

View file

@ -144,6 +144,10 @@ Rectangle {
width : cameraWidth
callModel: mainItem.callModel
conferenceInfoModel: mainItem.conferenceInfoModel
? mainItem.conferenceInfoModel
: mainItem.callModel
? mainItem.callModel.conferenceModel
: null
deactivateCamera: !mainItem.previewLoaderEnabled || mainItem.isEnding
/*