Fixed isEndToEndEncryptedChatAvailable to keep checking the deprecated param on the Core

This commit is contained in:
Sylvain Berfini 2022-09-14 09:37:52 +02:00
parent 2050ed93eb
commit ebaa6067b5

View file

@ -107,7 +107,7 @@ class LinphoneUtils {
fun isEndToEndEncryptedChatAvailable(): Boolean {
val core = coreContext.core
return core.isLimeX3DhEnabled &&
core.defaultAccount?.params?.limeServerUrl != null &&
(core.limeX3DhServerUrl != null || core.defaultAccount?.params?.limeServerUrl != null) &&
core.defaultAccount?.params?.conferenceFactoryUri != null
}