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.

@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.)

Comment on lines +283 to +285
// even when the caller is only changing the icon or clearAt. Fall
// back to a single space so those single-field updates go through.
// Matches the fix applied in nextcloud/talk-android@a89c5952fa.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// even when the caller is only changing the icon or clearAt. Fall
// back to a single space so those single-field updates go through.
// Matches the fix applied in nextcloud/talk-android@a89c5952fa.

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.

Fixes nextcloud#9855

Signed-off-by: ibrahim-iqbal <ibrahim-iqbal@users.noreply.github.com>
@ibrahim-iqbal
ibrahim-iqbal force-pushed the fix/status-icon-clear-at-only-9855 branch from 25c2da7 to 1ba0a8e Compare September 21, 2026 10:03
@ibrahim-iqbal

Copy link
Copy Markdown
Author

Pushed 1ba0a8e2f7 addressing your review:

  • Dropped SetStatusMessageBottomSheet.kt:285 — removed the // Matches the fix applied in nextcloud/talk-android@a89c5952fa. line per your suggestion. The remaining three-line comment still explains the "why" for the space substitution.
  • Fixed DCO — the previous sign-off used the numeric-ID noreply form (199698216+ibrahim-iqbal@...) which mismatched the committer email and tripped the DCO check. Amended with Signed-off-by: ibrahim-iqbal <ibrahim-iqbal@users.noreply.github.com> matching author and committer.

The other failing checks on the previous head (analysis, Analyze (java), detectWrongSettings, screenshot (Light, blue, 28)) look unrelated to this diff — happy to look at any that stay red after this re-run.

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"

3 participants