mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
This commit changes the needs_subscribe_warning function to use user_id instead of emails. This change is done because user_ids are immutable and using user_ids is the correct way to uniquely identify a user. We already know that user_ids being passed in this function are active user_ids, since they come from typeaheads. So, we only need to call 'people.get_by_user_id', to get the user object from user_id and do not need to check the active status of user, which was done previously using 'get_active_user_for_email'.
41 KiB
41 KiB