mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 11:39:42 +01:00
check for capability before reverting status
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
7a63a645fe
commit
c4f4c857d3
@ -284,6 +284,7 @@ class SetStatusDialogFragment :
|
||||
}
|
||||
|
||||
override fun revertStatus() {
|
||||
if (isRestoreStatusAvailable(currentUser!!)) {
|
||||
ncApi.revertStatus(
|
||||
credentials,
|
||||
ApiUtils.getUrlForRevertStatus(currentUser?.baseUrl!!, currentStatus?.messageId)
|
||||
@ -319,6 +320,7 @@ class SetStatusDialogFragment :
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
private fun setupGeneralStatusOptions() {
|
||||
binding.onlineStatus.setOnClickListener { setStatus(StatusType.ONLINE) }
|
||||
|
Loading…
Reference in New Issue
Block a user