mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	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:
		@@ -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();
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user