From 197b973f4857703fbf06299e1e92c546749b22f0 Mon Sep 17 00:00:00 2001 From: ibrahim-iqbal <199698216+ibrahim-iqbal@users.noreply.github.com> Date: Sun, 6 Sep 2026 20:04:07 +0530 Subject: [PATCH] Allow icon-only and clear-at-only status updates 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 #9855 Signed-off-by: ibrahim-iqbal <199698216+ibrahim-iqbal@users.noreply.github.com> --- .../java/com/nextcloud/ui/SetStatusMessageBottomSheet.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/nextcloud/ui/SetStatusMessageBottomSheet.kt b/app/src/main/java/com/nextcloud/ui/SetStatusMessageBottomSheet.kt index 86efd789df05..5e83463cb37a 100644 --- a/app/src/main/java/com/nextcloud/ui/SetStatusMessageBottomSheet.kt +++ b/app/src/main/java/com/nextcloud/ui/SetStatusMessageBottomSheet.kt @@ -279,9 +279,14 @@ class SetStatusMessageBottomSheet(val user: User, val currentStatus: Status?) : { dismiss(it) } ) } else { + // The server rejects a status update whose message field is empty, + // 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. + val message = binding.customStatusInput.text.toString().ifEmpty { " " } asyncRunner.postQuickTask( SetUserDefinedCustomStatusTask( - binding.customStatusInput.text.toString(), + message, binding.emoji.text.toString(), clearAt, accountManager.currentOwnCloudAccount?.savedAccount,