mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 14:35:27 +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];
|
return this._hash[id];
|
||||||
},
|
},
|
||||||
|
|
||||||
get_messages: function MessageList_get_mesages() {
|
|
||||||
return this._items;
|
|
||||||
},
|
|
||||||
|
|
||||||
num_items: function MessageList_num_items() {
|
num_items: function MessageList_num_items() {
|
||||||
return this._items.length;
|
return this._items.length;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -569,8 +569,8 @@ MessageListView.prototype = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.clear_table();
|
this.clear_table();
|
||||||
this.render(this.list.get_messages().slice(this._render_win_start,
|
this.render(this.list.all().slice(this._render_win_start,
|
||||||
this._render_win_end), 'bottom');
|
this._render_win_end), 'bottom');
|
||||||
|
|
||||||
// If we could see the newly selected message, scroll the
|
// If we could see the newly selected message, scroll the
|
||||||
// window such that the newly selected message is at 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.update_render_window(this.list.selected_idx(), false);
|
||||||
|
|
||||||
this.render(this.list.get_messages().slice(this._render_win_start,
|
this.render(this.list.all().slice(this._render_win_start,
|
||||||
this._render_win_end), 'bottom');
|
this._render_win_end), 'bottom');
|
||||||
},
|
},
|
||||||
|
|
||||||
clear_table: function MessageListView_clear_table() {
|
clear_table: function MessageListView_clear_table() {
|
||||||
|
|||||||
Reference in New Issue
Block a user