Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
sowjanyakch 2024-11-06 15:13:56 +01:00
parent 9fbb3886ab
commit 7a63a645fe
No known key found for this signature in database
GPG Key ID: F7AA2A8B65B50220
3 changed files with 10 additions and 10 deletions

View File

@ -98,7 +98,6 @@ class SetStatusDialogFragment :
private lateinit var popup: EmojiPopup private lateinit var popup: EmojiPopup
private var isBackupStatusAvailable = false private var isBackupStatusAvailable = false
@Inject @Inject
lateinit var ncApi: NcApi lateinit var ncApi: NcApi
@ -285,7 +284,10 @@ class SetStatusDialogFragment :
} }
override fun revertStatus() { override fun revertStatus() {
ncApi.revertStatus(credentials, ApiUtils.getUrlForRevertStatus(currentUser?.baseUrl!!, currentStatus?.messageId)) ncApi.revertStatus(
credentials,
ApiUtils.getUrlForRevertStatus(currentUser?.baseUrl!!, currentStatus?.messageId)
)
.subscribeOn(Schedulers.io()) .subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread()) .observeOn(AndroidSchedulers.mainThread())
.subscribe(object : Observer<GenericOverall> { .subscribe(object : Observer<GenericOverall> {
@ -316,8 +318,6 @@ class SetStatusDialogFragment :
override fun onComplete() { override fun onComplete() {
} }
}) })
} }
private fun setupGeneralStatusOptions() { private fun setupGeneralStatusOptions() {