mirror of https://github.com/zulip/zulip.git
Fix sending unnecessary pointer updates to server after reload.
(imported from commit 5297d7339e2fc363e825b20ddd7279f9878dbe2f)
This commit is contained in:
parent
f6b7aed0c9
commit
91a3935b92
|
@ -1212,8 +1212,12 @@ function main() {
|
|||
activity.set_user_statuses(page_params.initial_presences,
|
||||
page_params.initial_servertime);
|
||||
|
||||
furthest_read = page_params.initial_pointer;
|
||||
server_furthest_read = page_params.initial_pointer;
|
||||
if (page_params.orig_initial_pointer !== undefined &&
|
||||
page_params.orig_initial_pointer > server_furthest_read) {
|
||||
server_furthest_read = page_params.orig_initial_pointer;
|
||||
}
|
||||
furthest_read = server_furthest_read;
|
||||
|
||||
// Before trying to load messages: is this user way behind?
|
||||
consider_bankruptcy();
|
||||
|
|
Loading…
Reference in New Issue