Skip to content

Commit 236c11c

Browse files
committed
api: Add InitialSnapshot.maxChannelNameLength
1 parent 82928ef commit 236c11c

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

lib/api/model/initial_snapshot.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ class InitialSnapshot {
2424

2525
final List<CustomProfileField> customProfileFields;
2626

27+
@JsonKey(name: 'max_stream_name_length')
28+
final int maxChannelNameLength;
2729
final int maxTopicLength;
2830

2931
final int serverPresencePingIntervalSeconds;
@@ -160,6 +162,7 @@ class InitialSnapshot {
160162
required this.zulipMergeBase,
161163
required this.alertWords,
162164
required this.customProfileFields,
165+
required this.maxChannelNameLength,
163166
required this.maxTopicLength,
164167
required this.serverPresencePingIntervalSeconds,
165168
required this.serverPresenceOfflineThresholdSeconds,

lib/api/model/initial_snapshot.g.dart

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/example_data.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,6 +1312,7 @@ InitialSnapshot initialSnapshot({
13121312
String? zulipMergeBase,
13131313
List<String>? alertWords,
13141314
List<CustomProfileField>? customProfileFields,
1315+
int? maxChannelNameLength,
13151316
int? maxTopicLength,
13161317
int? serverPresencePingIntervalSeconds,
13171318
int? serverPresenceOfflineThresholdSeconds,
@@ -1367,6 +1368,7 @@ InitialSnapshot initialSnapshot({
13671368
zulipMergeBase: zulipMergeBase ?? recentZulipVersion,
13681369
alertWords: alertWords ?? ['klaxon'],
13691370
customProfileFields: customProfileFields ?? [],
1371+
maxChannelNameLength: maxChannelNameLength ?? 60,
13701372
maxTopicLength: maxTopicLength ?? 60,
13711373
serverPresencePingIntervalSeconds: serverPresencePingIntervalSeconds ?? 60,
13721374
serverPresenceOfflineThresholdSeconds: serverPresenceOfflineThresholdSeconds ?? 140,

0 commit comments

Comments
 (0)