refactor: Make home_view_loaded into a callback.

This reduces our extraneous deps from 72 to 71.
This commit is contained in:
Steve Howell
2021-03-28 14:43:58 +00:00
committed by Tim Abbott
parent c67f82b073
commit 98372cd244
3 changed files with 15 additions and 10 deletions

View File

@@ -506,7 +506,7 @@ export function initialize_everything() {
user_groups.initialize(user_groups_params);
unread.initialize();
bot_data.initialize(bot_params); // Must happen after people.initialize()
message_fetch.initialize();
message_fetch.initialize(server_events.home_view_loaded);
message_scroll.initialize();
emoji.initialize({
realm_emoji: emoji_params.realm_emoji,