mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Send conference invitation via secure chat when possible
This commit is contained in:
parent
cd56030c41
commit
24b00bdd07
1 changed files with 9 additions and 2 deletions
|
|
@ -83,9 +83,9 @@ class ConferenceSchedulingViewModel {
|
|||
// Send conference info even when conf is not scheduled for later
|
||||
// as the conference server doesn't invite participants automatically
|
||||
if let chatRoomParams = try?self.core.createDefaultChatRoomParams() {
|
||||
chatRoomParams.backend = ChatRoomBackend.FlexisipChat
|
||||
chatRoomParams.encryptionEnabled = self.isEndToEndEncryptedChatAvailable()
|
||||
chatRoomParams.groupEnabled = false
|
||||
chatRoomParams.encryptionEnabled = true
|
||||
chatRoomParams.backend = chatRoomParams.encryptionEnabled ? .FlexisipChat : .Basic
|
||||
chatRoomParams.subject = self.subject.value!
|
||||
scheduler.sendInvitations(chatRoomParams: chatRoomParams)
|
||||
}
|
||||
|
|
@ -140,6 +140,13 @@ class ConferenceSchedulingViewModel {
|
|||
|
||||
}
|
||||
|
||||
func isEndToEndEncryptedChatAvailable() -> Bool {
|
||||
let core = Core.get()
|
||||
return core.limeX3DhEnabled &&
|
||||
((core.limeX3DhServerUrl != nil && core.limeX3DhServerUrl.count > 0) || core.defaultAccount?.params?.limeServerUrl != nil) &&
|
||||
core.defaultAccount?.params?.conferenceFactoryUri != nil
|
||||
}
|
||||
|
||||
func reset() {
|
||||
|
||||
subject.value = ""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue