mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 12:54:58 +00:00
Change out-of-view message for replies to muted topics
(imported from commit 79a42cbaac1294c03789c467c6774ff7bf990e74)
This commit is contained in:
@@ -403,10 +403,14 @@ exports.possibly_notify_new_messages_outside_viewport = function (messages) {
|
|||||||
|
|
||||||
var row = current_msg_list.get_row(message.id);
|
var row = current_msg_list.get_row(message.id);
|
||||||
if (row.length === 0) {
|
if (row.length === 0) {
|
||||||
|
if (muting.is_topic_muted(message.stream, message.subject)) {
|
||||||
|
note = "You sent a message to a muted topic.";
|
||||||
|
} else {
|
||||||
// offscreen because it is outside narrow
|
// offscreen because it is outside narrow
|
||||||
// we can only look for these on non-search (can_apply_locally) messages
|
// we can only look for these on non-search (can_apply_locally) messages
|
||||||
// see also: exports.notify_messages_outside_current_search
|
// see also: exports.notify_messages_outside_current_search
|
||||||
note = "You sent a message outside the current narrow.";
|
note = "You sent a message outside the current narrow.";
|
||||||
|
}
|
||||||
link_class = "compose_notification_narrow_by_subject";
|
link_class = "compose_notification_narrow_by_subject";
|
||||||
link_text = "Narrow to " + get_message_header(message);
|
link_text = "Narrow to " + get_message_header(message);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user