tutorial.js: Narrow to PM with welcome-bot when user logins for first time.

This commit is contained in:
Vishnu Ks
2017-06-14 23:25:28 +05:30
committed by Steve Howell
parent 00668c7bbd
commit 9fbd990d1a

View File

@@ -344,12 +344,9 @@ function finale(skip) {
});
deferred_work = [];
// We start you in a narrow so it's not overwhelming.
var newbie_stream = stream_data.get_newbie_stream();
if (newbie_stream) {
narrow.activate([{operator: "stream", operand: newbie_stream}]);
}
var sender_bot = "welcome-bot@zulip.com";
narrow.by('pm-with', sender_bot, {select_first_unread: true, trigger: 'sidebar'});
compose_actions.cancel();
if (page_params.first_in_realm) {
// 'engineering' is the best possible stream since we used it in the