mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
This commit makes it so that MessageListData methods always attempt to filter muted messages. We later, in a new function (`messages_filtered_for_topic_mutes`) check if `excludes_muted_topics` is true or not, and skip the filtering work if it isn't. This new function consistently returns a new list. This refactor will later allow us to write clean and concise code as part of mute users. This commit also refactors the muting tests for MessageListData, which were earlier spread across two `run_test` functions. These tests should remain organized, since similar tests will be added as part of user mutes in future commits.