mirror of https://github.com/zulip/zulip.git
show notification for @-mentions in muted topics and muted streams
(imported from commit 7c6303a083f1f7d364920462e42360b71d7159b5)
This commit is contained in:
parent
e1a9a71759
commit
3542b63bb7
|
@ -321,6 +321,10 @@ function message_is_notifiable(message) {
|
||||||
if (message.sent_by_me) {
|
if (message.sent_by_me) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
// @-mentions take precent over muted-ness. See Trac #1929
|
||||||
|
if (exports.speaking_at_me(message)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if ((message.type === "stream") &&
|
if ((message.type === "stream") &&
|
||||||
!stream_data.in_home_view(message.stream)) {
|
!stream_data.in_home_view(message.stream)) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -334,9 +338,6 @@ function message_is_notifiable(message) {
|
||||||
if (message.type === "private") {
|
if (message.type === "private") {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (exports.speaking_at_me(message)) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
if ((message.type === "stream") &&
|
if ((message.type === "stream") &&
|
||||||
subs.receives_notifications(message.stream)) {
|
subs.receives_notifications(message.stream)) {
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue