mirror of https://github.com/zulip/zulip.git
select_message: Properly fall back to the first visible message
Our old selector here was picking up the floating recipient label, or something. This was breaking narrow-to-all-huddles when on a stream message -- you get no selection and the code is sad. (imported from commit d25fab03bd6d745df6d787c0b1b6452c8c539e32)
This commit is contained in:
parent
7be626ff2f
commit
d34bebc584
|
@ -242,7 +242,7 @@ function select_message(next_message, opts) {
|
|||
|
||||
/* Fall back to the first visible message. */
|
||||
if (next_message.length === 0) {
|
||||
next_message = $('tr:not(:hidden):first');
|
||||
next_message = rows.first_visible();
|
||||
}
|
||||
if (next_message.length === 0) {
|
||||
// There are no messages!
|
||||
|
|
Loading…
Reference in New Issue