add isCallRecordingAvailable

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2022-12-05 15:00:39 +01:00
parent 17f8144dc7
commit 6365554692
No known key found for this signature in database
GPG key ID: C793F8B59F43CE7B

View file

@ -98,6 +98,14 @@ object CapabilitiesUtilNew {
return false
}
fun isCallRecordingAvailable(user: User): Boolean {
if (user.capabilities?.spreedCapability?.config?.containsKey("call") == true) {
val map: Map<String, String>? = user.capabilities!!.spreedCapability!!.config!!["call"]
return map != null && map.containsKey("recording")
}
return false
}
@JvmStatic
fun isUserStatusAvailable(user: User): Boolean {
return user.capabilities?.userStatusCapability?.enabled == true &&