mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
stream_data: Fix traceback with opening the compose box.
We need to call update_calculated_fields earlier since we use can_access_subscribers in user_is_subscribed.
This commit is contained in:
@@ -428,6 +428,8 @@ exports.create_sub_from_server_data = function (stream_name, attrs) {
|
|||||||
sub.color = stream_color.pick_color(used_colors);
|
sub.color = stream_color.pick_color(used_colors);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
exports.update_calculated_fields(sub);
|
||||||
|
|
||||||
exports.add_sub(stream_name, sub);
|
exports.add_sub(stream_name, sub);
|
||||||
|
|
||||||
return sub;
|
return sub;
|
||||||
|
|||||||
Reference in New Issue
Block a user