Do not show ZRTP auth token validation dialog if the token is null
This commit is contained in:
parent
072db50727
commit
ea9d6c48bc
1 changed files with 2 additions and 3 deletions
|
@ -53,10 +53,9 @@ class StatusViewModel : StatusViewModel() {
|
|||
on: Boolean,
|
||||
authenticationToken: String?
|
||||
) {
|
||||
updateEncryptionInfo(call)
|
||||
if (call.currentParams.mediaEncryption == MediaEncryption.ZRTP && !call.authenticationTokenVerified) {
|
||||
showZrtpDialogEvent.value = Event(call)
|
||||
} else {
|
||||
updateEncryptionInfo(call)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -95,7 +94,7 @@ class StatusViewModel : StatusViewModel() {
|
|||
|
||||
fun showZrtpDialog() {
|
||||
val currentCall = coreContext.core.currentCall
|
||||
if (currentCall?.currentParams?.mediaEncryption == MediaEncryption.ZRTP) {
|
||||
if (currentCall?.authenticationToken != null && currentCall.currentParams.mediaEncryption == MediaEncryption.ZRTP) {
|
||||
showZrtpDialogEvent.value = Event(currentCall)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue