mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-24 22:15:41 +03:00
Merge pull request #4293 from nextcloud/cannot_overwrite_status_expiration
make predefined status use custom time
This commit is contained in:
commit
9f6c6b010c
1 changed files with 1 additions and 3 deletions
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue