Enable e2e encryption in scheduled conf chat rooms

This commit is contained in:
Christophe Deschamps 2025-12-03 19:32:15 +01:00
parent d4c1387c43
commit ed57ec1ea5

View file

@ -601,6 +601,9 @@ void ConferenceInfoCore::save() {
} else lCritical() << "No default account";
// Add text capability for chat in conf
linphoneConf->setCapability(linphone::StreamType::Text, true);
if (SettingsModel::getInstance()->getCreateEndToEndEncryptedMeetingsAndGroupCalls())
linphoneConf->setSecurityLevel(linphone::Conference::SecurityLevel::EndToEnd);
else linphoneConf->setSecurityLevel(linphone::Conference::SecurityLevel::PointToPoint);
auto confInfoModel = Utils::makeQObject_ptr<ConferenceInfoModel>(linphoneConf);
auto confSchedulerModel = confInfoModel->getConferenceScheduler();
if (!confSchedulerModel) {