mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-04-17 11:48:27 +00:00
Fix mediaEncryption setting and media list for friends with multiple addresses
This commit is contained in:
parent
1ffcd3e1ae
commit
1943f0f21c
3 changed files with 2 additions and 5 deletions
|
|
@ -2,6 +2,6 @@ import Foundation
|
|||
|
||||
public enum AppGitInfo {
|
||||
public static let branch = "master"
|
||||
public static let commit = "c01f79dd2"
|
||||
public static let commit = "1ffcd3e1a"
|
||||
public static let tag = "6.1.0-alpha"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -343,7 +343,7 @@ class ContactsListViewModel: ObservableObject {
|
|||
if let contactAvatarModel = SharedMainViewModel.shared.displayedFriend {
|
||||
var remote: Address?
|
||||
|
||||
if contactAvatarModel.addresses.count == 1 {
|
||||
if contactAvatarModel.addresses.count >= 1 {
|
||||
do {
|
||||
remote = try Factory.Instance.createAddress(addr: contactAvatarModel.address)
|
||||
} catch {
|
||||
|
|
|
|||
|
|
@ -83,15 +83,12 @@ struct SettingsAdvancedCallFragment: View {
|
|||
}
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue