message_list_view: Discard unused variable.

This commit is contained in:
Aman Agrawal
2023-05-29 08:51:13 +05:30
committed by Tim Abbott
parent 1f8b3fd09a
commit a1ba41ce66

View File

@@ -1155,7 +1155,7 @@ export class MessageListView {
this.clear_rendering_state(true); this.clear_rendering_state(true);
this.update_render_window(this.list.selected_idx(), false); this.update_render_window(this.list.selected_idx(), false);
} }
return this.rerender_with_target_scrolltop($selected_row, old_offset); return this.rerender_with_target_scrolltop(old_offset);
} }
set_message_offset(offset) { set_message_offset(offset) {
@@ -1163,7 +1163,7 @@ export class MessageListView {
message_viewport.scrollTop($msg.offset().top - offset); message_viewport.scrollTop($msg.offset().top - offset);
} }
rerender_with_target_scrolltop(selected_row, target_offset) { rerender_with_target_scrolltop(target_offset) {
// target_offset is the target number of pixels between the top of the // target_offset is the target number of pixels between the top of the
// viewable window and the selected message // viewable window and the selected message
this.clear_table(); this.clear_table();