From f45f0b1df63a32dac84801367f1f1d06af67e21f Mon Sep 17 00:00:00 2001 From: Zev Benjamin Date: Mon, 10 Mar 2014 18:07:17 -0400 Subject: [PATCH] Get message row safely in the presence of local ids (imported from commit 4f8c4742206a9fcba4eb19653152aeb4919159bd) --- static/js/ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/ui.js b/static/js/ui.js index 4506f3d2b6..71cc0575f8 100644 --- a/static/js/ui.js +++ b/static/js/ui.js @@ -1213,7 +1213,7 @@ $(function () { if (event.then_scroll) { if (row.length === 0) { - var row_from_dom = $('.message_row[zid=' + event.id + ']'); + var row_from_dom = current_msg_list.get_row(event.id); blueslip.debug("message_selected missing selected row", { previously_selected: event.previously_selected, selected_id: event.id,