tutorial: don't recommend saying hi on a tutorial stream.

Now we don't unsub you from it until after we've picked the hello
stream.

(imported from commit b1489007e972af7713804ba5ff98764a6393a0b6)
This commit is contained in:
Jessica McKellar 2013-04-14 16:59:44 -04:00
parent 750b8326d7
commit e15dd90bd9
1 changed files with 2 additions and 1 deletions

View File

@ -147,7 +147,8 @@ function pick_hello_stream() {
// Try to avoid alert/notification streams if possible.
var alert_streams = ["commits", "jenkins", "nagios", "support", "builds"];
$.each(my_streams, function (idx, stream_name) {
if ($.inArray(stream_name.toLowerCase(), alert_streams) === -1) {
if (($.inArray(stream_name.toLowerCase(), alert_streams) === -1) &&
(stream_name.substring(0, 9) !== "tutorial-")) {
hello_stream = stream_name;
return false;
}