Fix sending unnecessary pointer updates to server after reload.

(imported from commit 5297d7339e2fc363e825b20ddd7279f9878dbe2f)
This commit is contained in:
Tim Abbott 2013-08-13 16:52:56 -04:00
parent f6b7aed0c9
commit 91a3935b92
1 changed files with 5 additions and 1 deletions

View File

@ -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();