videocallpage: handle conference infos
Change-Id: I4cfc7c9c525c66f4e483089864bec059c388a1bd
diff --git a/src/mainview/components/VideoCallPage.qml b/src/mainview/components/VideoCallPage.qml
index 4657a7e..047e332 100644
--- a/src/mainview/components/VideoCallPage.qml
+++ b/src/mainview/components/VideoCallPage.qml
@@ -42,6 +42,8 @@
signal needToShowInFullScreen
function updateUI(accountId, convUid) {
+ videoCallOverlay.handleParticipantsInfo(CallAdapter.getConferencesInfos())
+
bestName = ClientWrapper.utilsAdaptor.getBestName(accountId, convUid)
var id = ClientWrapper.utilsAdaptor.getBestId(accountId, convUid)
@@ -74,6 +76,15 @@
videoCallOverlay.closePotentialContactPicker()
}
+ function handleParticipantsInfo(infos) {
+ if (infos.length === 0) {
+ bestName = ClientWrapper.utilsAdaptor.getBestName(accountId, convUid)
+ } else {
+ bestName = ""
+ }
+ videoCallOverlay.handleParticipantsInfo(infos)
+ }
+
function previewMagneticSnap() {
@@ -225,6 +236,10 @@
width: videoCallPageMainRect.width
height: videoCallPageMainRect.height
+
+ onOffsetChanged: {
+ videoCallOverlay.handleParticipantsInfo(CallAdapter.getConferencesInfos())
+ }
}
VideoCallPreviewRenderer {