mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 11:52:01 +00:00
When email_address_visibility is changed and either the old value or the updated value is EMAIL_ADDRESS_VISIBILITY_EVERYONE then email field of all users is updated and we also send the corresponding event to clients. But apply_event code did not update the data on receiving the event, so this commit fixes the code to correctly handle the event in apply_event. (We also use this event when just changing a user's email address). This commit also adds the tests and openapi schema for the event.