mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-22 04:55:29 +03:00
check for capability before reverting status
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
7a63a645fe
commit
c4f4c857d3
2 changed files with 35 additions and 33 deletions
|
@ -284,6 +284,7 @@ class SetStatusDialogFragment :
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun revertStatus() {
|
override fun revertStatus() {
|
||||||
|
if (isRestoreStatusAvailable(currentUser!!)) {
|
||||||
ncApi.revertStatus(
|
ncApi.revertStatus(
|
||||||
credentials,
|
credentials,
|
||||||
ApiUtils.getUrlForRevertStatus(currentUser?.baseUrl!!, currentStatus?.messageId)
|
ApiUtils.getUrlForRevertStatus(currentUser?.baseUrl!!, currentStatus?.messageId)
|
||||||
|
@ -319,6 +320,7 @@ class SetStatusDialogFragment :
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun setupGeneralStatusOptions() {
|
private fun setupGeneralStatusOptions() {
|
||||||
binding.onlineStatus.setOnClickListener { setStatus(StatusType.ONLINE) }
|
binding.onlineStatus.setOnClickListener { setStatus(StatusType.ONLINE) }
|
||||||
|
|
Loading…
Reference in a new issue