Use max_topic_length instead of hardcoded limit of 60 #307
Labels
a-api
Implementing specific parts of the Zulip server API
a-compose
Compose box, autocomplete, attaching files/images
help wanted
Milestone
Until recently, the Zulip API specified a fixed maximum length for topics, of 60 characters. This changed a few months ago in zulip/zulip@e68a69e / zulip/zulip#25226 ; the maximum is now taken from the register-queue response, as
max_topic_length
.(That value had actually existed in the register-queue response for a few years, but wasn't part of the documented behavior of the send-message endpoint.)
We currently have a constant
kMaxTopicLength
reflecting the old API. We should instead usemax_topic_length
.Chat discussion:
https://chat.zulip.org/#narrow/stream/243-mobile-team/topic/flutter.20app.20and.20max_topic_length/near/1643895
The text was updated successfully, but these errors were encountered: