mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
tutorial: Remove is_running and defer logic.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user