Schedule conferences with end-to-end encryption enabled and chat channel activated

This commit is contained in:
benoit.martins 2025-03-12 17:19:32 +01:00
parent 6b9857b11b
commit 5cadd63d1e
2 changed files with 14 additions and 1 deletions

View file

@ -323,7 +323,7 @@ struct MeetingFragment: View {
let model = MeetingViewModel()
model.subject = "Meeting subject"
model.conferenceUri = "linphone.com/lalalal.fr"
model.description = "description du meeting ça va être la bringue wesh wesh gros bien ou bien ça roule"
model.description = ""
return MeetingFragment(meetingViewModel: model
, meetingsListViewModel: MeetingsListViewModel()
, isShowScheduleMeetingFragment: .constant(true)

View file

@ -274,6 +274,19 @@ class MeetingViewModel: ObservableObject {
if let conferenceInfo = (self.displayedMeeting != nil ? self.displayedMeeting!.confInfo : try? Factory.Instance.createConferenceInfo()) {
let localAccount = core.defaultAccount
conferenceInfo.organizer = localAccount?.params?.identityAddress
// Allows to have a chat room within the conference
conferenceInfo.setCapability(streamType: StreamType.Text, enable: true)
// Enable end-to-end encryption if client supports it
if LinphoneUtils.isEndToEndEncryptedChatAvailable(core: core) {
Log.info("\(MeetingViewModel.TAG) Requesting EndToEnd security level for conference")
conferenceInfo.securityLevel = Conference.SecurityLevel.EndToEnd
} else {
Log.info("\(MeetingViewModel.TAG) Requesting PointToPoint security level for conference")
conferenceInfo.securityLevel = Conference.SecurityLevel.PointToPoint
}
self.fillConferenceInfo(confInfo: conferenceInfo)
self.resetConferenceSchedulerAndListeners(core: core)
self.conferenceScheduler?.account = localAccount