mirror of https://github.com/zulip/zulip.git
Fix load_old_messages being called with NaN argument.
(imported from commit 32cb17c98b81a40861f3d825e17a687575f35542)
This commit is contained in:
parent
ec0683cd86
commit
386e9eeb22
|
@ -759,6 +759,9 @@ function load_more_messages() {
|
|||
load_more_enabled = false;
|
||||
table = narrow.active() ? "zfilt" : "zhome";
|
||||
oldest_message_id = rows.id(rows.get_table(table).find("tr[zid]:first"));
|
||||
if (isNaN(oldest_message_id)) {
|
||||
oldest_message_id = selected_message_id;
|
||||
}
|
||||
load_old_messages(oldest_message_id, batch_size, 0,
|
||||
function (messages) {
|
||||
ui.hide_load_more_messages_spinner();
|
||||
|
|
Loading…
Reference in New Issue