Skip to content

Use max_topic_length instead of hardcoded limit of 60 #307

Open
@gnprice

Description

@gnprice

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 use max_topic_length.

Chat discussion:
https://chat.zulip.org/#narrow/stream/243-mobile-team/topic/flutter.20app.20and.20max_topic_length/near/1643895

Metadata

Metadata

Assignees

No one assigned

    Labels

    a-apiImplementing specific parts of the Zulip server APIa-composeCompose box, autocomplete, attaching files/imageshelp wanted

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions