Fixed encryption toggle visible in chat room creation when using a non compatible account

This commit is contained in:
Sylvain Berfini 2020-07-03 17:29:49 +02:00
parent d12ff2b81a
commit 6f5c83026a

View file

@ -40,14 +40,14 @@ class LinphoneUtils {
fun isLimeAvailable(): Boolean { fun isLimeAvailable(): Boolean {
val core = coreContext.core val core = coreContext.core
val defaultProxy = core.defaultProxyConfig return core.limeX3DhAvailable() && core.limeX3DhEnabled() &&
return core.limeX3DhAvailable() && core.limeX3DhEnabled() && core.limeX3DhServerUrl != null && defaultProxy != null core.limeX3DhServerUrl != null &&
core.defaultProxyConfig?.conferenceFactoryUri != null
} }
fun isGroupChatAvailable(): Boolean { fun isGroupChatAvailable(): Boolean {
val core = coreContext.core val core = coreContext.core
val defaultProxy = core.defaultProxyConfig return core.defaultProxyConfig?.conferenceFactoryUri != null
return defaultProxy != null && defaultProxy.conferenceFactoryUri != null
} }
fun createOneToOneChatRoom(participant: Address, isSecured: Boolean = false): ChatRoom? { fun createOneToOneChatRoom(participant: Address, isSecured: Boolean = false): ChatRoom? {