mirror of
https://github.com/nextcloud/talk-android
synced 2025-03-06 22:29:09 +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() {
|
||||
var inputText = binding.customStatusInput.text.toString()
|
||||
if (inputText.isEmpty()){
|
||||
inputText = " "
|
||||
}
|
||||
|
||||
ncApi.setCustomStatusMessage(
|
||||
credentials,
|
||||
ApiUtils.getUrlForSetCustomStatus(currentUser?.baseUrl),
|
||||
binding.emoji.text.toString(),
|
||||
binding.customStatusInput.text.toString(),
|
||||
inputText,
|
||||
clearAt)
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
|
Loading…
Reference in New Issue
Block a user