mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 12:33:40 +00:00
Clean up stream renaming in the JS code.
We now use stream_id as our key to rename streams, which should prevent a few race conditions long term. (We are still possibly contending with other events that use stream_name as a key, so this is not perfect.)
This commit is contained in:
@@ -524,8 +524,8 @@ exports.update_dom_with_unread_counts = function (counts) {
|
||||
animate_mention_changes(counts.mentioned_message_count);
|
||||
};
|
||||
|
||||
exports.rename_stream = function (sub) {
|
||||
sub.sidebar_li = build_stream_sidebar_row(sub.name);
|
||||
exports.rename_stream = function (sub, new_name) {
|
||||
sub.sidebar_li = build_stream_sidebar_row(new_name);
|
||||
exports.build_stream_list(); // big hammer
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user