tutorial: Remove is_running and defer logic.

This commit is contained in:
Rishi Gupta
2017-07-17 13:43:01 -07:00
committed by Tim Abbott
parent 99df794f2c
commit 0286a41c4c
5 changed files with 3 additions and 52 deletions

View File

@@ -47,15 +47,6 @@ function process_result(messages, opts) {
}
function get_old_messages_success(data, opts) {
if (tutorial.is_running()) {
// Don't actually process the messages until the tutorial is
// finished, but do disable the loading indicator so it isn't
// distracting in the background
loading.destroy_indicator($('#page_loading_indicator'));
tutorial.defer(function () { get_old_messages_success(data, opts); });
return;
}
if (opts.msg_list.narrowed && opts.msg_list !== current_msg_list) {
// We unnarrowed before receiving new messages so
// don't bother processing the newly arrived messages.