Fixed stun setting not enabling it
This commit is contained in:
parent
a423038c0a
commit
dc90fea30a
2 changed files with 4 additions and 1 deletions
|
@ -25,6 +25,7 @@ Group changes to describe their impact on the project, as follows:
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Negative gain in audio settings is allowed again
|
- Negative gain in audio settings is allowed again
|
||||||
|
- STUN server URL setting not enabling it for non sip.linphone.org accounts
|
||||||
- Contacts list header case comparison
|
- Contacts list header case comparison
|
||||||
- Stop voice recording playback when sending chat message
|
- Stop voice recording playback when sending chat message
|
||||||
|
|
||||||
|
|
|
@ -301,11 +301,13 @@ class AccountSettingsViewModel(val account: Account) : GenericSettingsViewModel(
|
||||||
Log.w("[Account Settings] No NAT Policy object in account params yet")
|
Log.w("[Account Settings] No NAT Policy object in account params yet")
|
||||||
val natPolicy = core.createNatPolicy()
|
val natPolicy = core.createNatPolicy()
|
||||||
natPolicy.stunServer = newValue
|
natPolicy.stunServer = newValue
|
||||||
|
natPolicy.isStunEnabled = newValue.isNotEmpty()
|
||||||
params.natPolicy = natPolicy
|
params.natPolicy = natPolicy
|
||||||
} else {
|
} else {
|
||||||
params.natPolicy?.stunServer = newValue
|
params.natPolicy?.stunServer = newValue
|
||||||
if (newValue.isEmpty()) ice.value = false
|
params.natPolicy?.isStunEnabled = newValue.isNotEmpty()
|
||||||
}
|
}
|
||||||
|
if (newValue.isEmpty()) ice.value = false
|
||||||
stunServer.value = newValue
|
stunServer.value = newValue
|
||||||
account.params = params
|
account.params = params
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue