Skip to content

Allow icon-only and clear-at-only status updates - #17562

Open
ibrahim-iqbal wants to merge 1 commit into
nextcloud:masterfrom
ibrahim-iqbal:fix/status-icon-clear-at-only-9855
Open

ibrahim-iqbal wants to merge 1 commit into
nextcloud:masterfrom
ibrahim-iqbal:fix/status-icon-clear-at-only-9855

Conversation

@ibrahim-iqbal

Copy link
Copy Markdown

Fixes #9855.

The server rejects a status update whose message field is empty, even when the caller is only changing the icon or the clear-at time. That silently blocks the "only icon" and "only clear at" paths from the status dialog.

Substituting a single space when the input is empty lets the API accept those single-field updates, matching the fix that was already applied on the talk-android side: nextcloud/talk-android@a89c5952fa.

Repro (from the issue)

  1. Open the Status dialog with no existing custom message.
  2. Pick an emoji, or pick a "Clear status message after" option — leave the message field blank.
  3. Tap Set status.

Before: dialog closes but neither the icon nor the clear-at value is persisted.
After: the chosen icon and/or clear-at is stored server-side; the message field shows as a single space, which is what talk-android has been shipping for the same reason.

The server rejects a status update whose message field is empty, even
when the caller is only changing the icon or clearAt. Substitute a
single space so those single-field updates go through, matching the
fix applied in nextcloud/talk-android@a89c5952fa.

Fixes nextcloud#9855

Signed-off-by: ibrahim-iqbal <199698216+ibrahim-iqbal@users.noreply.github.com>
@ibrahim-iqbal
ibrahim-iqbal force-pushed the fix/status-icon-clear-at-only-9855 branch from 197b973 to 25c2da7 Compare September 12, 2026 18:39
@github-actions

Copy link
Copy Markdown

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

(If you believe you should not receive this message, you can add yourself to the blocklist.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

status dialog: not able to set only "icon" / only "clear at"

1 participant