mirror of https://github.com/zulip/zulip.git
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:
parent
51018e12f5
commit
0169a06f99
|
@ -428,6 +428,8 @@ exports.create_sub_from_server_data = function (stream_name, attrs) {
|
|||
sub.color = stream_color.pick_color(used_colors);
|
||||
}
|
||||
|
||||
exports.update_calculated_fields(sub);
|
||||
|
||||
exports.add_sub(stream_name, sub);
|
||||
|
||||
return sub;
|
||||
|
|
Loading…
Reference in New Issue