mirror of
https://github.com/zulip/zulip.git
synced 2026-06-30 21:11:04 +08:00
Don't show the out of view banner for messages further down.
This makes the notification slightly more conservative as we do our initial roll out. In particular, it avoids cases like being notified when you are almost at the bottom of your feed for a message in your narrow. (imported from commit 9c834b1c344d8c429de92fb3512f32494fc02379)
This commit is contained in:
parent
376a467d89
commit
657e1f1f9a
@ -409,14 +409,6 @@ exports.possibly_notify_new_messages_outside_viewport = function (messages) {
|
||||
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 if (viewport.is_below_visible_bottom(row.offset().top) && !narrow.narrowed_by_reply()){
|
||||
// offscreen because it's too far down.
|
||||
// offer scroll to message link.
|
||||
note = "Your recently sent message is";
|
||||
link_class = "compose_notification_scroll_to_message";
|
||||
link_text = "further down";
|
||||
|
||||
} else {
|
||||
// return with _.each is like continue for normal for loops.
|
||||
return;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user