user_topic: 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.

Now, toggling topic visibility policy operation supports
empty topic name.

Adds backward compatibility for:
- `topic_name` field in the `user_topic` event type
This commit is contained in:
Prakhar Pratyush
2024-11-14 18:45:31 +05:30
committed by Tim Abbott
parent 2dea392d9e
commit 27e95f7d33
5 changed files with 108 additions and 2 deletions

View File

@@ -41,6 +41,7 @@ format used by the Zulip server that they are interacting with.
* `subject` field in the `message` event type
* `topic` field in the `delete_message` event type
* `orig_subject` and `subject` fields in the `update_message` event type
* `topic_name` field in the `user_topic` event type
* [`GET /messages`](/api/get-messages),
[`GET /messages/{message_id}`](/api/get-message): Added `allow_empty_topic_name`