tutorial: Remove unnecessary actions.

* .screen is no longer being changed by other parts of the tutorial
* first_run_message we don't need, since we're guaranteed to have a message.
* Changing to #home and narrow.deactivate are not needed since we're
  immediately narrowing to PM with welcome-bot.
This commit is contained in:
Rishi Gupta 2017-07-17 14:08:37 -07:00 committed by Tim Abbott
parent 4f417700ef
commit 0c665e9bbe
1 changed files with 0 additions and 8 deletions

View File

@ -11,10 +11,7 @@ function set_tutorial_status(status, callback) {
}
function finale() {
$(".screen").css({opacity: 0.0, width: 0, height: 0});
set_tutorial_status("finished");
$('#first_run_message').show();
var sender_bot = "welcome-bot@zulip.com";
narrow.by('pm-with', sender_bot, {select_first_unread: true, trigger: 'sidebar'});
@ -22,11 +19,6 @@ function finale() {
}
exports.start = function () {
if (overlays.is_active()) {
ui_util.change_tab_to('#home');
}
narrow.deactivate();
finale();
};