message view: Move live update logic of stream name to message_store.

This commit is contained in:
Ryan Rehman
2020-07-27 03:09:32 +05:30
committed by Tim Abbott
parent 131a1dd54f
commit 15c5dadb73
6 changed files with 38 additions and 52 deletions

View File

@@ -193,15 +193,6 @@ class MessageListData {
return this.last().id;
}
update_stream_name(stream_id, new_stream_name) {
for (const item of this._items) {
if (item.stream_id && item.stream_id === stream_id) {
item.display_recipient = new_stream_name;
item.stream = new_stream_name;
}
}
}
add_messages(messages) {
let top_messages = [];
let bottom_messages = [];