mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-23 13:35:33 +03:00
add isCallRecordingAvailable
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
17f8144dc7
commit
6365554692
1 changed files with 8 additions and 0 deletions
|
@ -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 &&
|
||||
|
|
Loading…
Reference in a new issue