Do not show the ZRTP SAS dialog again when clicking on wrong letters

This commit is contained in:
Sylvain Berfini 2024-01-16 16:23:32 +01:00
parent b308e2a8a0
commit 83070a9c01

View file

@ -474,7 +474,11 @@ class CurrentCallViewModel @UiThread constructor() : ViewModel() {
fun updateZrtpSas(verified: Boolean) {
coreContext.postOnCoreThread {
if (::currentCall.isInitialized) {
currentCall.authenticationTokenVerified = verified
if (!verified && !currentCall.authenticationTokenVerified) {
Log.w("$TAG ZRTP SAS validation failed")
} else {
currentCall.authenticationTokenVerified = verified
}
}
}
}