Change out-of-view message for replies to muted topics

(imported from commit 79a42cbaac1294c03789c467c6774ff7bf990e74)
This commit is contained in:
acrefoot
2013-12-09 17:15:01 -05:00
parent 06c689738e
commit 068fac2d7e

View File

@@ -403,10 +403,14 @@ exports.possibly_notify_new_messages_outside_viewport = function (messages) {
var row = current_msg_list.get_row(message.id);
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 {