mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-08 23:19:55 +00:00
fix to be able to set only "icon" / only "clear at" for status
api seems to set single modification for icon or "clear at" only if status message is not empty (must be at least whitespace) Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
bce0d276f3
commit
546f3fe1f2
@ -385,11 +385,16 @@ class SetStatusDialogFragment :
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun setStatusMessage() {
|
private fun setStatusMessage() {
|
||||||
|
var inputText = binding.customStatusInput.text.toString()
|
||||||
|
if (inputText.isEmpty()){
|
||||||
|
inputText = " "
|
||||||
|
}
|
||||||
|
|
||||||
ncApi.setCustomStatusMessage(
|
ncApi.setCustomStatusMessage(
|
||||||
credentials,
|
credentials,
|
||||||
ApiUtils.getUrlForSetCustomStatus(currentUser?.baseUrl),
|
ApiUtils.getUrlForSetCustomStatus(currentUser?.baseUrl),
|
||||||
binding.emoji.text.toString(),
|
binding.emoji.text.toString(),
|
||||||
binding.customStatusInput.text.toString(),
|
inputText,
|
||||||
clearAt)
|
clearAt)
|
||||||
.subscribeOn(Schedulers.io())
|
.subscribeOn(Schedulers.io())
|
||||||
.observeOn(AndroidSchedulers.mainThread())
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
|
Loading…
Reference in New Issue
Block a user