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:
Keegan McAllister 2012-10-23 16:08:52 -04:00
parent 7be626ff2f
commit d34bebc584
1 changed files with 1 additions and 1 deletions

View File

@ -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!