Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

user_groups: Clean up members field comment.

Tim Abbott29aad5c94032
diff --git a/web/src/user_groups.ts b/web/src/user_groups.ts
index 492b5afd39a..d31e700e931 100644
--- a/web/src/user_groups.ts
+++ b/web/src/user_groups.ts
@@ -14,9 +14,9 @@ import type {UserGroupUpdateEvent} from "./types";
type UserGroupRaw = z.infer<typeof raw_user_group_schema>;
-// The members field is a number array which we convert
-// to a Set in the initialize function.
export const user_group_schema = raw_user_group_schema.extend({
+ // These are delivered via the API as lists, but converted to sets
+ // during initialization for more convenient manipulation.
members: z.set(z.number()),
direct_subgroup_ids: z.set(z.number()),
});