mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 02:58:07 +00:00
Disable mediaEncryptionMandatory when mediaEncryption is set to None
This commit is contained in:
parent
8c9784a21d
commit
7237a5f4a7
1 changed files with 16 additions and 4 deletions
|
|
@ -80,10 +80,22 @@ struct SettingsAdvancedFragment: View {
|
|||
.padding(.bottom, -5)
|
||||
|
||||
Menu {
|
||||
Button("None") { settingsViewModel.mediaEncryption = "None"}
|
||||
Button("SRTP") { settingsViewModel.mediaEncryption = "SRTP"}
|
||||
Button("ZRTP") { settingsViewModel.mediaEncryption = "ZRTP"}
|
||||
Button("DTLS") { settingsViewModel.mediaEncryption = "DTLS"}
|
||||
Button("None") {
|
||||
settingsViewModel.mediaEncryption = "None"
|
||||
settingsViewModel.mediaEncryptionMandatory = false
|
||||
}
|
||||
Button("SRTP") {
|
||||
settingsViewModel.mediaEncryption = "SRTP"
|
||||
settingsViewModel.mediaEncryptionMandatory = true
|
||||
}
|
||||
Button("ZRTP") {
|
||||
settingsViewModel.mediaEncryption = "ZRTP"
|
||||
settingsViewModel.mediaEncryptionMandatory = true
|
||||
}
|
||||
Button("DTLS") {
|
||||
settingsViewModel.mediaEncryption = "DTLS"
|
||||
settingsViewModel.mediaEncryptionMandatory = true
|
||||
}
|
||||
} label: {
|
||||
Text(settingsViewModel.mediaEncryption)
|
||||
.default_text_style(styleSize: 15)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue