Save the correct-from-dom rerendered message in _rows when rerendering

(imported from commit c021beef3106148a6d085ca16f34a1c4bb4fc7af)
This commit is contained in:
Leo Franchi
2014-03-07 16:12:31 -05:00
parent 1c06e37245
commit 26690adc47

View File

@@ -623,8 +623,8 @@ MessageListView.prototype = {
// Re-render just this one message
this._add_msg_timestring(message);
var rendered_msg = $(templates.render('single_message', message));
this._rows[message.id] = rendered_msg;
row.replaceWith(rendered_msg);
this._rows[message.id] = document.getElementById(message.dom_id);
if (was_selected) {
this.list.select_id(message.id);
}