streams: Allow specifying sender during channel email generation.

This commit adds a `sender_id` parameter to the
`GET /streams/{stream_id}/email_address` endpoint to specify the
ID of a user or bot which should appear as the sender when messages
are sent to a channel using the channel email address.

Earlier, Email gateway bot was always the sender.

Fixes part of #31566.
This commit is contained in:
Prakhar Pratyush
2024-12-05 18:45:21 +05:30
committed by Tim Abbott
parent 2bb4b70121
commit dc35e79701
10 changed files with 377 additions and 88 deletions

View File

@@ -34,7 +34,7 @@ DESKTOP_WARNING_VERSION = "5.9.3"
# new level means in api_docs/changelog.md, as well as "**Changes**"
# entries in the endpoint's documentation in `zulip.yaml`.
API_FEATURE_LEVEL = 334 # Last bumped for adding empty_topic_name client capability.
API_FEATURE_LEVEL = 335 # Last bumped for adding sender_id in get channel email address endpoint.
# Bump the minor PROVISION_VERSION to indicate that folks should provision
# only when going from an old version of the code to a newer version. Bump