Allow retry when Android policy conflict refresh fails

This commit is contained in:
evgeny committed 2026-11-03 16:48:59 +01:00
1 parent 51b9c6e6f0
commit 2b83be1faa
1 file changed
+2 -1
@@ -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")