edit_history: Add support for empty topic name.

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/{message_id}/history` endpoint to decide whether
the topic names in the fetched messages can be empty strings.

If False, the topic names in the fetched response will have the
value of `realm_empty_topic_display_name` field in `POST /register`
response replacing "" for channel messages.
This commit is contained in:
Prakhar Pratyush
2024-11-15 15:41:54 +05:30
committed by Tim Abbott
parent 01f749c0b8
commit 293db85f67
5 changed files with 83 additions and 4 deletions

View File

@@ -49,6 +49,10 @@ format used by the Zulip server that they are interacting with.
boolean parameter to decide whether the topic names in the fetched messages
can be empty strings.
* [`GET /messages/{message_id}/history`](/api/get-message-history):
Added `allow_empty_topic_name` boolean parameter to decide whether the
topic names in the fetched message history objects can be empty strings.
**Feature level 333**
* [Message formatting](/api/message-formatting): System groups can now