mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-06 06:15:12 +00:00
use safe call operator
Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
parent
2da78f69f2
commit
fdbff4a8e6
@ -176,7 +176,8 @@ class SetStatusDialogFragment :
|
||||
@SuppressLint("NotifyDataSetChanged")
|
||||
override fun onNext(statusOverall: StatusOverall) {
|
||||
if (statusOverall.ocs?.meta?.statusCode == HTTP_STATUS_CODE_OK) {
|
||||
backupStatus = statusOverall.ocs?.data!!
|
||||
statusOverall.ocs?.data?.let { status ->
|
||||
backupStatus = status
|
||||
if (backupStatus.message != null) {
|
||||
isBackupStatusAvailable = true
|
||||
val backupPredefinedStatus = PredefinedStatus(
|
||||
@ -192,6 +193,7 @@ class SetStatusDialogFragment :
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun onError(e: Throwable) {
|
||||
if (e is HttpException && e.code() == HTTP_STATUS_CODE_NOT_FOUND) {
|
||||
|
Loading…
Reference in New Issue
Block a user