server-events: Remove unused home_view_loaded.zulip event trigger.

In commit 92ad988144, we removed the local echo code that tried
to re-render locally echoed messages that were rendered right before
a server/browser restart. These changes removed the only event
triggered by `"home_view_loaded.zulip"`.

This removes the remaining `"home_view_loaded.zulip"` event trigger
in web/src/server_events.js since it no longer triggers any events.
This commit is contained in:
Lauryn Menard 2023-06-26 14:41:09 +02:00 committed by Tim Abbott
parent bc3c2476d2
commit 0d1c43d1d9
2 changed files with 0 additions and 8 deletions

View File

@ -264,7 +264,6 @@ export function force_get_events() {
export function home_view_loaded() { export function home_view_loaded() {
waiting_on_homeview_load = false; waiting_on_homeview_load = false;
get_events_success([]); get_events_success([]);
$(document).trigger("home_view_loaded.zulip");
} }
export function initialize() { export function initialize() {

View File

@ -9,13 +9,6 @@ const {page_params} = require("./lib/zpage_params");
const noop = () => {}; const noop = () => {};
set_global("document", {
to_$() {
return {
trigger() {},
};
},
});
set_global("addEventListener", noop); set_global("addEventListener", noop);
const channel = mock_esm("../src/channel"); const channel = mock_esm("../src/channel");