mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
Passing the user group object in case of named user group is fine for `do_change_stream_group_based_setting`. But for anonymous groups, if the code path calling that function is not creating a new anonymous user group, it has to modify the user group by itself before calling that function. In that case, if `old_setting_api_value` is not provided, `old_user_group` is calculated false, since the group id has not changed for the stream, but the group membership has changed. old_setting_api_value will be the same as new_setting_api_value in such a case. It is better to accept the new setting value as either an int or UserGroupMembersDict, so that `do_change_stream_group_based_setting` can decide what to do with that argument.
102 KiB
102 KiB