Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

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

apoorvapendse8f14b717ffeb
diff --git a/zerver/lib/test_classes.py b/zerver/lib/test_classes.py
index 2b4a6eb98eb..a637d8b21ba 100644
--- a/zerver/lib/test_classes.py
+++ b/zerver/lib/test_classes.py
@@ -1622,7 +1622,7 @@ Output:
def create_channel_via_post(
self,
user: UserProfile,
- subscribers: list[str] | list[int] | None = None,
+ subscribers: list[int] | None = None,
name: str | None = None,
extra_post_data: Mapping[str, Any] = {},
invite_only: bool = False,
diff --git a/zerver/openapi/zulip.yaml b/zerver/openapi/zulip.yaml
index 3094b7fe8f8..80e06574b3b 100644
--- a/zerver/openapi/zulip.yaml
+++ b/zerver/openapi/zulip.yaml
@@ -23537,15 +23537,10 @@ paths:
example: "Channel for discussing all things music!"
subscribers:
description: |
- A list of user IDs (preferred) or Zulip API email
- addresses of the users to be subscribed to the new channel specified in the `channel` parameter.
- oneOf:
- - type: array
- items:
- type: string
- - type: array
- items:
- type: integer
+ A list of user IDs of the users to be subscribed to the new channel.
+ type: array
+ items:
+ type: integer
example: [16, 12]
announce:
description: |
diff --git a/zerver/views/streams.py b/zerver/views/streams.py
index cb96bc5130a..d43212602b2 100644
--- a/zerver/views/streams.py
+++ b/zerver/views/streams.py
@@ -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