Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use max_topic_length instead of hardcoded limit of 60 #307

Open
gnprice opened this issue Sep 20, 2023 · 7 comments · May be fixed by #1413
Open

Use max_topic_length instead of hardcoded limit of 60 #307

gnprice opened this issue Sep 20, 2023 · 7 comments · May be fixed by #1413
Labels
a-api Implementing specific parts of the Zulip server API a-compose Compose box, autocomplete, attaching files/images help wanted

Comments

@gnprice
Copy link
Member

gnprice commented Sep 20, 2023

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

@gnprice gnprice added a-compose Compose box, autocomplete, attaching files/images a-api Implementing specific parts of the Zulip server API labels Sep 20, 2023
@gnprice gnprice added this to the Beta milestone Sep 20, 2023
@kehshiba

This comment was marked as off-topic.

@gnprice

This comment was marked as off-topic.

@kehshiba

This comment was marked as off-topic.

@gnprice gnprice modified the milestones: Beta 1, Beta 2 Nov 8, 2023
@gnprice gnprice modified the milestones: Beta 2, Launch Nov 22, 2023
@gnprice gnprice modified the milestones: Launch, B2: Summer 2024 May 9, 2024
@Aman-Sirmaur19

This comment was marked as off-topic.

@chrisbobbe

This comment was marked as off-topic.

@lakshya1goel
Copy link
Contributor

Hello, I want to work on this.

@chrisbobbe
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-api Implementing specific parts of the Zulip server API a-compose Compose box, autocomplete, attaching files/images help wanted
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

5 participants