Allow retry when Android policy conflict refresh fails
This commit is contained in:
1 parent
51b9c6e6f0
commit
2b83be1faa
1 file changed
+2
-1
+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")
|
||||
|
||||
Reference in new issue
Block a user