mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
fetch_messages: Add support for empty topic names.
This commit is a part of the work to support empty string
as a topic name.
Previously, empty string was not a valid topic name.
Adds `allow_empty_topic_name` boolean parameter to `GET /messages`
and `GET /messages/{message_id}` endpoints to decide whether the
topic names in the fetched messages can be empty strings.
If False, the topic names in the fetched message will have the
value of `realm_empty_topic_display_name` field in `POST /register`
response replacing "" for channel messages.
This commit is contained in:
committed by
Tim Abbott
parent
3ba198e79a
commit
5d9beb3655
@@ -49,6 +49,7 @@ class EditMessageTest(ZulipTestCase):
|
||||
search_fields={},
|
||||
apply_markdown=False,
|
||||
client_gravatar=False,
|
||||
allow_empty_topic_name=True,
|
||||
allow_edit_history=True,
|
||||
user_profile=None,
|
||||
realm=msg.realm,
|
||||
|
||||
Reference in New Issue
Block a user