mirror of
https://github.com/zulip/zulip.git
synced 2026-07-12 21:04:41 +08:00
Use symbolic name for constant
(imported from commit cafb513c082b1ff1cf2169d90c3e4a77a9af5a9e)
This commit is contained in:
parent
9875164908
commit
39db8bf5d5
@ -605,10 +605,12 @@ $(function () {
|
||||
get_updates();
|
||||
|
||||
// backfill more messages after the user is idle
|
||||
var backfill_batch_size = 1000;
|
||||
$(document).idle({'idle': 1000*10,
|
||||
'onIdle': function () {
|
||||
var first_id = message_array[0].id;
|
||||
load_old_messages(first_id - 1, "older", 1000);
|
||||
load_old_messages(first_id - 1, "older",
|
||||
backfill_batch_size);
|
||||
}});
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user