mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 00:23:49 +00:00
stream settings: Fix error in rendering stream members in UI.
To re-render stream members on subscription add or remove event, we are accessing undefined value "active_stream.stream_id" rather than "active_stream.id", which resulted in falsey value and our stream members were not updated unconditionally.
This commit is contained in:
@@ -222,7 +222,7 @@ exports.update_settings_for_subscribed = function (sub) {
|
||||
}
|
||||
|
||||
var active_stream = exports.active_stream();
|
||||
if (active_stream !== undefined && active_stream.stream_id === sub.stream_id) {
|
||||
if (active_stream !== undefined && active_stream.id === sub.stream_id) {
|
||||
stream_edit.rerender_subscribers_list(sub);
|
||||
}
|
||||
|
||||
@@ -242,7 +242,7 @@ exports.update_settings_for_unsubscribed = function (sub) {
|
||||
stream_edit.hide_sub_settings(sub);
|
||||
|
||||
var active_stream = exports.active_stream();
|
||||
if (active_stream !== undefined && active_stream.stream_id === sub.stream_id) {
|
||||
if (active_stream !== undefined && active_stream.id === sub.stream_id) {
|
||||
stream_edit.rerender_subscribers_list(sub);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user