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

Allow icon-only and clear-at-only status updates#17562
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants