Fixed E2E icon visible in contacts list even when LIME isn't available + add warning when authentication required callback is triggered
This commit is contained in:
parent
48a68ab5c2
commit
77993d74aa
3 changed files with 10 additions and 2 deletions
|
@ -55,7 +55,9 @@ class ContactSelectionData(private val searchResult: SearchResult) : ContactData
|
|||
}
|
||||
|
||||
val hasLimeX3DHCapability: Boolean
|
||||
get() = searchResult.hasCapability(FriendCapability.LimeX3Dh)
|
||||
get() = LinphoneUtils.isEndToEndEncryptedChatAvailable() && searchResult.hasCapability(
|
||||
FriendCapability.LimeX3Dh
|
||||
)
|
||||
|
||||
init {
|
||||
isDisabled.value = false
|
||||
|
|
|
@ -165,6 +165,12 @@ class CoreContext(
|
|||
}
|
||||
}
|
||||
|
||||
override fun onAuthenticationRequested(core: Core, authInfo: AuthInfo, method: AuthMethod) {
|
||||
Log.w(
|
||||
"[Context] Authentication requested for account [${authInfo.username}@${authInfo.domain}] with realm [${authInfo.realm}] using method [$method]"
|
||||
)
|
||||
}
|
||||
|
||||
override fun onPushNotificationReceived(core: Core, payload: String?) {
|
||||
Log.i("[Context] Push notification received: $payload")
|
||||
}
|
||||
|
|
|
@ -82,7 +82,7 @@
|
|||
<string name="contact_new_choose_sync_account">Choisissez où enregistrer le contact</string>
|
||||
<string name="contact_local_sync_account">Enregistrer localement</string>
|
||||
<string name="chat_event_participant_removed">%s a quitté le groupe</string>
|
||||
<string name="debug_popup_title">Activer les traces de débogage</string>
|
||||
<string name="debug_popup_title">Débogage</string>
|
||||
<string name="debug_popup_enable_logs">Activer les traces</string>
|
||||
<string name="debug_popup_disable_logs">Désactiver les traces</string>
|
||||
<string name="debug_popup_send_logs">Envoyer les traces</string>
|
||||
|
|
Loading…
Reference in a new issue