Fix autoscroll forever

(imported from commit 66cc2661767f54de54012b4abf930e748071585e)
This commit is contained in:
Jason Michalski 2014-03-19 09:38:10 -04:00
parent 0a1d142d69
commit 456e735725
1 changed files with 1 additions and 1 deletions

View File

@ -555,7 +555,7 @@ MessageListView.prototype = {
// autoscroll_forever: if we're on the last message, keep us on the last message
if (last_message_was_selected && page_params.autoscroll_forever) {
this.list.select_id(this.list.last().msg.id, {from_rendering: true});
this.list.select_id(this.list.last().id, {from_rendering: true});
scroll_to_selected();
this.list.reselect_selected_id();
return;