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.

frontend: Initialize user_group module before right_sidebar module.

Ujjawal Modi21b1298c1dee
diff --git a/web/src/ui_init.js b/web/src/ui_init.js
index 99e27c009b7..57c66b59c67 100644
--- a/web/src/ui_init.js
+++ b/web/src/ui_init.js
@@ -656,6 +656,11 @@ export function initialize_everything() {
emoji_codes: generated_emoji_codes,
});
+ // The user_group must be initialized before right sidebar
+ // module, so that we can tell whether user is member of
+ // user_group whose members are allowed to create multiuse invite.
+ user_groups.initialize(user_groups_params);
+
// These components must be initialized early, because other
// modules' initialization has not been audited for whether they
// expect DOM elements to always exist (As that did before these
@@ -714,7 +719,6 @@ export function initialize_everything() {
});
compose_closed_ui.initialize();
reload.initialize();
- user_groups.initialize(user_groups_params);
unread.initialize(unread_params);
bot_data.initialize(bot_params); // Must happen after people.initialize()
message_fetch.initialize(server_events.home_view_loaded);