zulip/zerver/openapi
Sahil Batra 2396e6858f users: Always pass "delivery_email" field in user objects.
Previously, user objects contained delivery_email field
only when user had access to real email. Also, delivery_email
was not present if visibility setting is set to "everyone"
as email field was itself set to real email.

This commit changes the code to pass "delivery_email" field
always in the user objects with its value being "None" if
user does not have access to real email and real email otherwise.
The "delivery_email" field value is None for logged-out users.
For bots, the "delivery_email" is always set to real email
irrespective of email_address_visibility setting.

Also, since user has access to real email if visibility is set
to "everyone", "delivery_email" field is passed in that case
too.

There is no change in email field and it is same as before.

This commit also adds code to send event to update delivery_email
field when email_address_visibility setting changes to all the
users whose access to emails changes and also changes the code to
send event on changing delivery_email to users who have access
to email.
2023-02-10 17:35:49 -08:00
..
__init__.py openapi: Add missing __init__.py; fix type errors hidden by its absence. 2021-07-05 12:20:39 -07:00
curl_param_value_generators.py realm: Create RealmAuditLog entry when adding realm linkifiers. 2022-07-31 18:32:28 -07:00
javascript_examples.js javascript_examples: Fix unicorn/no-useless-spread. 2022-12-07 09:55:05 -08:00
javascript_examples.py python: Replace universal_newlines with text. 2022-01-23 22:16:01 -08:00
markdown_extension.py black: Reformat with Black 23. 2023-02-02 10:40:13 -08:00
openapi.py black: Reformat with Black 23. 2023-02-02 10:40:13 -08:00
python_examples.py black: Reformat with Black 23. 2023-02-02 10:40:13 -08:00
test_curl_examples.py api-docs: Move markdown files to top level directory. 2023-02-02 17:25:40 -08:00
testing.yaml test_openapi: Make testing.yml a full conformant specification. 2022-01-13 14:34:11 -08:00
zulip.yaml users: Always pass "delivery_email" field in user objects. 2023-02-10 17:35:49 -08:00