mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 22:43:42 +00:00
web: Add parameters to API requests for empty topic name support.
This commit adds `allow_empty_name: true` to the following
endpoints to receive empty strings as topic name when such
topics are available:
* `GET /messages`
* `GET /messages/{message_id}`
* `GET /messages/{message_id}/history`
Also, it adds `empty_topic_name` client capability for spectators.
These changes are part of the broader effort to enable
support for empty string as a topic name.
This commit is contained in:
committed by
Tim Abbott
parent
593bd5f757
commit
fd67e31163
@@ -110,6 +110,7 @@ export function unstar_all_messages_in_topic(stream_id: number, topic: string):
|
||||
{operator: "topic", operand: topic},
|
||||
{operator: "is", operand: "starred"},
|
||||
]),
|
||||
allow_empty_topic_name: true,
|
||||
};
|
||||
|
||||
void channel.get({
|
||||
|
||||
Reference in New Issue
Block a user