mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 20:02:15 +00:00
Change out-of-view message for replies to muted topics
(imported from commit 79a42cbaac1294c03789c467c6774ff7bf990e74)
This commit is contained in:
@@ -402,11 +402,15 @@ exports.possibly_notify_new_messages_outside_viewport = function (messages) {
|
||||
var link_text;
|
||||
|
||||
var row = current_msg_list.get_row(message.id);
|
||||
if (row.length === 0) {
|
||||
// offscreen because it is outside narrow
|
||||
// we can only look for these on non-search (can_apply_locally) messages
|
||||
// see also: exports.notify_messages_outside_current_search
|
||||
note = "You sent a message outside the current narrow.";
|
||||
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
|
||||
// we can only look for these on non-search (can_apply_locally) messages
|
||||
// see also: exports.notify_messages_outside_current_search
|
||||
note = "You sent a message outside the current narrow.";
|
||||
}
|
||||
link_class = "compose_notification_narrow_by_subject";
|
||||
link_text = "Narrow to " + get_message_header(message);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user