mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
This commit adds 'visibility_policy' as a parameter to user_allows_notifications_in_StreamTopic function. This adds logic inside the user_allows_notifications_in_StreamTopic function, to not return False when a stream is muted but the topic is UNMUTED. Adds a method `user_id_to_visibility_policy_dict` to 'StreamTopicTarget' class to fetch (user_id => visibility_policy) in single db query. Co-authored-by: Kartik Srivastava <kaushiksri0908@gmail.com> Co-authored-by: Prakhar Pratyush <prakhar841301@gmail.com>