mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 11:39:42 +01:00
show backup status when only when status message is previously set
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
43a49494ae
commit
8bf7fd8553
@ -177,6 +177,7 @@ class SetStatusDialogFragment :
|
|||||||
override fun onNext(statusOverall: StatusOverall) {
|
override fun onNext(statusOverall: StatusOverall) {
|
||||||
if (statusOverall.ocs?.meta?.statusCode == HTTP_STATUS_CODE_OK) {
|
if (statusOverall.ocs?.meta?.statusCode == HTTP_STATUS_CODE_OK) {
|
||||||
backupStatus = statusOverall.ocs?.data!!
|
backupStatus = statusOverall.ocs?.data!!
|
||||||
|
if(backupStatus.message!= null){
|
||||||
isBackupStatusAvailable = true
|
isBackupStatusAvailable = true
|
||||||
val backupPredefinedStatus = PredefinedStatus(
|
val backupPredefinedStatus = PredefinedStatus(
|
||||||
backupStatus.userId!!,
|
backupStatus.userId!!,
|
||||||
@ -190,6 +191,7 @@ class SetStatusDialogFragment :
|
|||||||
adapter.notifyDataSetChanged()
|
adapter.notifyDataSetChanged()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
override fun onError(e: Throwable) {
|
override fun onError(e: Throwable) {
|
||||||
if (e is HttpException && e.code() == HTTP_STATUS_CODE_NOT_FOUND) {
|
if (e is HttpException && e.code() == HTTP_STATUS_CODE_NOT_FOUND) {
|
||||||
|
Loading…
Reference in New Issue
Block a user