From 2b83be1faa57c0fe9e8d68ce6386db5aaae92f7e Mon Sep 17 00:00:00 2001 From: evgeny Date: Tue, 3 Nov 2026 16:48:59 +0100 Subject: [PATCH] Allow retry when Android policy conflict refresh fails --- .../main/java/com/utun/chat/ui/components/GroupPolicyDialog.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/chatgui-android/app/src/main/java/com/utun/chat/ui/components/GroupPolicyDialog.kt b/tools/chatgui-android/app/src/main/java/com/utun/chat/ui/components/GroupPolicyDialog.kt index 2de75e7e7..6e49d4098 100644 --- a/tools/chatgui-android/app/src/main/java/com/utun/chat/ui/components/GroupPolicyDialog.kt +++ b/tools/chatgui-android/app/src/main/java/com/utun/chat/ui/components/GroupPolicyDialog.kt @@ -64,7 +64,8 @@ fun GroupPolicyDialog(channel: String, onDismiss: () -> Unit) { else -> R.string.group_policy_failed } if (result.optString("error") == "conflict") { - snapshot = policyRequest(channel.toLong(), all, null, emptySet()); selected = emptySet() + val refreshed = policyRequest(channel.toLong(), all, null, emptySet()) + snapshot = refreshed.takeIf { it.optBoolean("ok") }; selected = emptySet() } else snapshot = null } else { if (snapshot == null || apply) desired = result.getBoolean("all_members")