From 27e97f49fa18a9d952c78aa387e434c631155fc1 Mon Sep 17 00:00:00 2001
From: Pierre Lespagnol <pierre.lespagnol@savoirfairelinux.com>
Date: Mon, 1 Mar 2021 14:37:11 -0500
Subject: [PATCH] conference: add host in confInfo when detached

This allows the rendez-vous to be considered as a
conference and not as participant for the other
conference.

Change-Id: I9053533a605f1928da93ed3d3e9235db8b764591
---
 src/conference.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/conference.cpp b/src/conference.cpp
index 0106ac03cd..13cdb78b54 100644
--- a/src/conference.cpp
+++ b/src/conference.cpp
@@ -115,6 +115,10 @@ Conference::Conference()
                 newInfo.emplace_back(ParticipantInfo {
                     std::move(uri), "", false, 0, 0, 0, 0, true, false, false, isModerator});
             }
+            // Add host in confInfo with audio and video muted if detached
+            if (shared->getState() == State::ACTIVE_DETACHED)
+                newInfo.emplace_back(ParticipantInfo {
+                    "", "", false, 0, 0, 0, 0, true, true, false, true});
 
             shared->updateConferenceInfo(std::move(newInfo));
         });
-- 
GitLab