File tree 2 files changed +2
-4
lines changed
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -155,8 +155,6 @@ class GetMessagesResult {
155
155
Map <String , dynamic > toJson () => _$GetMessagesResultToJson (this );
156
156
}
157
157
158
- // https://zulip.com/api/send-message#parameter-topic
159
- const int kMaxTopicLengthCodePoints = 60 ;
160
158
161
159
// https://zulip.com/api/send-message#parameter-content
162
160
const int kMaxMessageLengthCodePoints = 10000 ;
Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ enum TopicValidationError {
143
143
144
144
class ComposeTopicController extends ComposeController <TopicValidationError > {
145
145
ComposeTopicController ({required this .store}) {
146
+ maxLengthUnicodeCodePoints = store.maxTopicLength;
146
147
_update ();
147
148
}
148
149
@@ -151,8 +152,7 @@ class ComposeTopicController extends ComposeController<TopicValidationError> {
151
152
// TODO(#668): listen to [PerAccountStore] once we subscribe to this value
152
153
bool get mandatory => store.realmMandatoryTopics;
153
154
154
- // TODO(#307) use `max_topic_length` instead of hardcoded limit
155
- @override final maxLengthUnicodeCodePoints = kMaxTopicLengthCodePoints;
155
+ @override late int maxLengthUnicodeCodePoints;
156
156
157
157
@override
158
158
String _computeTextNormalized () {
You can’t perform that action at this time.
0 commit comments