Merge pull request #4293 from nextcloud/cannot_overwrite_status_expiration

make predefined status use custom time
This commit is contained in:
Marcel Hibbe 2024-10-01 12:46:03 +02:00 committed by GitHub
commit 9f6c6b010c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -479,13 +479,11 @@ class SetStatusDialogFragment :
}
})
} else {
val clearAt = clearAtToUnixTime(selectedPredefinedStatus!!.clearAt)
ncApi.setPredefinedStatusMessage(
credentials,
ApiUtils.getUrlForSetPredefinedStatus(currentUser?.baseUrl!!),
selectedPredefinedStatus!!.id,
if (clearAt == -1L) null else clearAt
clearAt
)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())?.subscribe(object : Observer<GenericOverall> {