markdown: Add @stream as an alias for @all.

Fixes: #8930.
This commit is contained in:
Shubham Dhama
2018-04-03 21:25:57 +05:30
committed by Tim Abbott
parent 771db7fb90
commit b650b6b38c
11 changed files with 84 additions and 37 deletions

View File

@@ -735,8 +735,8 @@ exports.initialize = function () {
if (data !== undefined && data.mentioned !== undefined) {
var email = data.mentioned.email;
// warn if @all or @everyone is mentioned
if (data.mentioned.full_name === 'all' || data.mentioned.full_name === 'everyone') {
// warn if @all, @everyone or @stream is mentioned
if (data.mentioned.full_name === 'all' || data.mentioned.full_name === 'everyone' || data.mentioned.full_name === 'stream') {
return; // don't check if @all or @everyone is subscribed to a stream
}