mirror of https://github.com/zulip/zulip.git
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:
parent
bc3c2476d2
commit
0d1c43d1d9
|
@ -264,7 +264,6 @@ export function force_get_events() {
|
|||
export function home_view_loaded() {
|
||||
waiting_on_homeview_load = false;
|
||||
get_events_success([]);
|
||||
$(document).trigger("home_view_loaded.zulip");
|
||||
}
|
||||
|
||||
export function initialize() {
|
||||
|
|
|
@ -9,13 +9,6 @@ const {page_params} = require("./lib/zpage_params");
|
|||
|
||||
const noop = () => {};
|
||||
|
||||
set_global("document", {
|
||||
to_$() {
|
||||
return {
|
||||
trigger() {},
|
||||
};
|
||||
},
|
||||
});
|
||||
set_global("addEventListener", noop);
|
||||
|
||||
const channel = mock_esm("../src/channel");
|
||||
|
|
Loading…
Reference in New Issue