Only load initial messages if we know we will have some

(imported from commit af6bec8bdcd5dc1a643662e7531a3ec75298ffa0)
This commit is contained in:
Zev Benjamin 2012-11-05 17:56:27 -05:00
parent b5cd40723f
commit df10d184a7
1 changed files with 5 additions and 1 deletions

View File

@ -607,7 +607,11 @@ $(function () {
}});
}
load_old_messages(initial_pointer, "around", 400, load_more);
if (have_initial_messages) {
load_old_messages(initial_pointer, "around", 400, load_more);
} else {
get_updates();
}
});
function restart_get_updates() {