user-groups: Define max_user_group_name_length in user_groups.ts.

"max_user_group_name_length" is now defined in user_groups.ts
instead of user_group_edit.ts because we would use that value
in further commits in user_group_create.ts and importing it
from user_group_edit.ts would result in import cycle.
This commit is contained in:
Sahil Batra
2025-01-10 15:51:03 +05:30
committed by Tim Abbott
parent 126d76db50
commit 42fe2690e3
2 changed files with 7 additions and 7 deletions

View File

@@ -41,6 +41,11 @@ export function init(): void {
// WE INITIALIZE DATA STRUCTURES HERE!
init();
// Ideally this should be included in page params.
// Like we have realm.max_stream_name_length` and
// `realm.max_stream_description_length` for streams.
export const max_user_group_name_length = 100;
export function add(user_group_raw: UserGroupRaw): UserGroup {
// Reformat the user group members structure to be a set.
const user_group = {