mirror of
https://github.com/zulip/zulip.git
synced 2025-10-29 19:13:53 +00:00
In commit #25837, we added in a check for the user's mark as read policy in the frontend for `by_topic` and `by_recipient` narrowing. In that change, the assumption was that for both functions, it was sufficient to check only for whether the user policy was to never mark as read. But because the `by_recipient` function may narrow to an interleaved stream view, it is possible that message will be marked as read when the user did not expect it to be (e.g. they marked all the messages in a topic narrow as unread and then used the `S` key shortcut to navigate back to the stream view) when they have conversation views only as their mark as read policy. Here we move the check for the user's mark as read policy to be in the two cases for `by_recipient` so that the mark as read behavior here matches the user's setting.