mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
Remove message_list:get_messages, which is redundant with all().
(imported from commit 100eb775b89c54c45f70cf903018bdaefa99d3f6)
This commit is contained in:
@@ -93,10 +93,6 @@ MessageList.prototype = {
|
||||
return this._hash[id];
|
||||
},
|
||||
|
||||
get_messages: function MessageList_get_mesages() {
|
||||
return this._items;
|
||||
},
|
||||
|
||||
num_items: function MessageList_num_items() {
|
||||
return this._items.length;
|
||||
},
|
||||
|
||||
@@ -569,8 +569,8 @@ MessageListView.prototype = {
|
||||
}
|
||||
|
||||
this.clear_table();
|
||||
this.render(this.list.get_messages().slice(this._render_win_start,
|
||||
this._render_win_end), 'bottom');
|
||||
this.render(this.list.all().slice(this._render_win_start,
|
||||
this._render_win_end), 'bottom');
|
||||
|
||||
// If we could see the newly selected message, scroll the
|
||||
// window such that the newly selected message is at the
|
||||
@@ -617,8 +617,8 @@ MessageListView.prototype = {
|
||||
|
||||
this.update_render_window(this.list.selected_idx(), false);
|
||||
|
||||
this.render(this.list.get_messages().slice(this._render_win_start,
|
||||
this._render_win_end), 'bottom');
|
||||
this.render(this.list.all().slice(this._render_win_start,
|
||||
this._render_win_end), 'bottom');
|
||||
},
|
||||
|
||||
clear_table: function MessageListView_clear_table() {
|
||||
|
||||
Reference in New Issue
Block a user