mirror of
https://github.com/zulip/zulip.git
synced 2025-11-17 12:21:58 +00:00
When creating multiple streams using "POST /users/me/subscriptions" endpoint, same anonymous group was being used for settings of all the streams, like if can_subscribe_group was being set to an anonymous group, all streams created using that endpoint would use the same anonymous group for can_subscribe_group setting. Using the same anonymous groups for multiple streams caused unintended behavior - - Changing a setting for one stream also changed it for all other streams sharing the the same anonymous group, because eventually the members and subgroups of the group were updated. - Changing the setting to a named user group failed because `do_change_stream_permission_group` attempts to delete the anonymous group during the update. However, deletion of anonymous group is restricted if they are still referenced by setting fields. This commit fixes this so that one anonymous group is used only for one setting for a single stream.
77 KiB
77 KiB