Refactor reload.js to allow saving only some state when reloading.

The reload state is now divided into 3 different components:
  pointer, narrow, compose
This commit is contained in:
Dylan Dumesnil
2015-11-28 18:00:00 -08:00
committed by Tim Abbott
parent 9a3331acaf
commit 24b63f30ba
3 changed files with 61 additions and 38 deletions

View File

@@ -273,7 +273,10 @@ function fast_forward_pointer() {
furthest_read = data.max_message_id;
unconditionally_send_pointer_update().then(function () {
ui.change_tab_to('#home');
reload.initiate({immediate: true, save_state: false});
reload.initiate({immediate: true,
save_pointer: false,
save_narrow: false,
save_compose: false});
});
});
}