Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
views: Fix typo in scheduled message comments.
Aditya A15919561ebae
diff --git a/zerver/views/message_send.py b/zerver/views/message_send.pyindex 8c8f17f4604..87cb7a38f5e 100644--- a/zerver/views/message_send.py+++ b/zerver/views/message_send.py@@ -64,12 +64,12 @@ def send_message_backend(if recipient_type_name == "direct":# For now, use "private" from Message.API_RECIPIENT_TYPES.# TODO: Use "direct" here, as well as in events and- # message (created, schdeduled, drafts) objects/dicts.+ # message (created, scheduled, drafts) objects/dicts.recipient_type_name = "private"elif recipient_type_name == "channel":# For now, use "stream" from Message.API_RECIPIENT_TYPES.# TODO: Use "channel" here, as well as in events and- # message (created, schdeduled, drafts) objects/dicts.+ # message (created, scheduled, drafts) objects/dicts.recipient_type_name = "stream"# If to is None, then we default to andiff --git a/zerver/views/scheduled_messages.py b/zerver/views/scheduled_messages.pyindex ee60459204a..f1f48c6576a 100644--- a/zerver/views/scheduled_messages.py+++ b/zerver/views/scheduled_messages.py@@ -87,7 +87,7 @@ def update_scheduled_message_backend(if recipient_type_name is not None and recipient_type_name == "channel":# For now, use "stream" from Message.API_RECIPIENT_TYPES.# TODO: Use "channel" here, as well as in events and- # message (created, schdeduled, drafts) objects/dicts.+ # message (created, scheduled, drafts) objects/dicts.recipient_type_name = "stream"if recipient_type_name is not None and recipient_type_name == "stream" and topic_name is None:@@ -154,7 +154,7 @@ def create_scheduled_message_backend(elif recipient_type_name == "channel":# For now, use "stream" from Message.API_RECIPIENT_TYPES.# TODO: Use "channel" here, as well as in events and- # message (created, schdeduled, drafts) objects/dicts.+ # message (created, scheduled, drafts) objects/dicts.recipient_type_name = "stream"deliver_at = timestamp_to_datetime(scheduled_delivery_timestamp)diff --git a/zerver/views/typing.py b/zerver/views/typing.pyindex c8be59271a2..78cccd6dff8 100644--- a/zerver/views/typing.py+++ b/zerver/views/typing.py@@ -39,7 +39,7 @@ def send_notification_backend(if recipient_type_name == "channel":# For now, use "stream" from Message.API_RECIPIENT_TYPES.# TODO: Use "channel" here, as well as in events and- # message (created, schdeduled, drafts) objects/dicts.+ # message (created, scheduled, drafts) objects/dicts.recipient_type_name = "stream"if recipient_type_name == "stream":