mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-05-07 14:44:01 +00:00
Fix changing avatar name on removing call.
This commit is contained in:
parent
dad9cbecf2
commit
cfa2205de4
3 changed files with 8 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue