mirror of
https://github.com/zulip/zulip.git
synced 2025-10-31 20:13:46 +00:00
This makes us more efficient when handling multiple users. We don't have to keep sending the same two queries to the database. Note that as part of this we eliminated a failure mode for the obscure population of users from whom both `user.is_guest` and `user.can_access_public_streams()` returns False. We know this would have only affected Zephyr users (by looking at the code), and we know we don't actually process Zephyr users for email digests (or else we would have raised exceptions in the old code).