mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 08:56:10 +00:00
We use `get_by_user_id` instead of directly accessing the global dict, because when accessing person objects directly from one of the global dicts we need callers to check for undefined values, this can be fixed by using `get_by_user_id` method to get person objects because that functions makes sure to assert that we indeed have a valid user id, so it will never return undefined values. Co-authored-by: Zixuan James Li <p359101898@gmail.com>
3.5 KiB
3.5 KiB