mirror of https://github.com/zulip/zulip.git
Only load initial messages if we know we will have some
(imported from commit af6bec8bdcd5dc1a643662e7531a3ec75298ffa0)
This commit is contained in:
parent
b5cd40723f
commit
df10d184a7
|
@ -607,7 +607,11 @@ $(function () {
|
|||
}});
|
||||
}
|
||||
|
||||
if (have_initial_messages) {
|
||||
load_old_messages(initial_pointer, "around", 400, load_more);
|
||||
} else {
|
||||
get_updates();
|
||||
}
|
||||
});
|
||||
|
||||
function restart_get_updates() {
|
||||
|
|
Loading…
Reference in New Issue