mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
message view: Move live update logic of stream name to message_store.
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user