zulip / zulip-flutter

Upcoming Zulip mobile apps for Android and iOS, using Flutter
Apache License 2.0
176 stars 164 forks source link

Use max_topic_length instead of hardcoded limit of 60 #307

Open gnprice opened 1 year ago

gnprice commented 1 year ago

Until recently, the Zulip API specified a fixed maximum length for topics, of 60 characters. This changed a few months ago in zulip/zulip@e68a69e91f99e09d91757ea71de30448111c5426 / https://github.com/zulip/zulip/pull/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

kehshiba commented 1 year ago

@gnprice can i work on this?

gnprice commented 1 year ago

@kehshiba Hello! Please take a look at the Zulip project's guidance for picking an issue to work on.

In this repo we don't have the "help wanted" label because this codebase isn't yet fully set up to welcome contributors; but that just makes the other steps all the more important.

kehshiba commented 1 year ago

ok thanks @gnprice