server_events: Rename home_view_loaded related variables.

Gave them a more general name which reflected what they were
really doing.
This commit is contained in:
Aman Agrawal
2024-04-17 10:09:58 +00:00
committed by Tim Abbott
parent 6d7856fa37
commit fb8a05a683
5 changed files with 13 additions and 13 deletions

View File

@@ -196,7 +196,7 @@ function test_fetch_success(opts) {
process_results.verify();
}
function initial_fetch_step(home_view_loaded) {
function initial_fetch_step(finished_initial_fetch) {
const self = {};
let fetch;
@@ -207,7 +207,7 @@ function initial_fetch_step(home_view_loaded) {
expected_opts_data: initialize_data.initial_fetch.req,
});
message_fetch.initialize(home_view_loaded);
message_fetch.initialize(finished_initial_fetch);
};
self.finish = () => {
@@ -281,11 +281,11 @@ run_test("initialize", () => {
old_unreads_missing: false,
};
function home_view_loaded() {
function finished_initial_fetch() {
home_loaded = true;
}
const step1 = initial_fetch_step(home_view_loaded);
const step1 = initial_fetch_step(finished_initial_fetch);
step1.prep();