zerver: Drop support for Zulip API emails in channel creation.

Also write the description a bit better.

Discussion:
https://chat.zulip.org/#narrow/channel/378-api-design/topic/Channel.20creation.20should.20return.20the.20channel.20ID/near/2240040.

Signed-off-by: apoorvapendse <apoorvavpendse@gmail.com>
This commit is contained in:
apoorvapendse
2025-08-12 03:19:07 +00:00
committed by Tim Abbott
parent 9adee70d8d
commit 8f14b717ff
3 changed files with 6 additions and 11 deletions

View File

@@ -739,7 +739,7 @@ def create_channel(
message_retention_days: Json[str] | Json[int] = RETENTION_DEFAULT,
name: Annotated[str, StringConstraints(strip_whitespace=True, min_length=1)],
send_new_subscription_messages: Json[bool] = True,
subscribers: Json[list[str] | list[int]],
subscribers: Json[list[int]],
topics_policy: Json[TopicsPolicy] = None,
) -> HttpResponse:
realm = user_profile.realm