Skip to content

Commit 65ad611

Browse files
committed
api: Add InitialSnapshot.maxChannelNameLength
1 parent 1699aa5 commit 65ad611

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

lib/api/model/initial_snapshot.dart

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

2525
final List<CustomProfileField> customProfileFields;
2626

27+
@JsonKey(name: 'max_stream_name_length')
28+
final int maxChannelNameLength;
29+
2730
final int serverPresencePingIntervalSeconds;
2831
final int serverPresenceOfflineThresholdSeconds;
2932

@@ -158,6 +161,7 @@ class InitialSnapshot {
158161
required this.zulipMergeBase,
159162
required this.alertWords,
160163
required this.customProfileFields,
164+
required this.maxChannelNameLength,
161165
required this.serverPresencePingIntervalSeconds,
162166
required this.serverPresenceOfflineThresholdSeconds,
163167
required this.serverTypingStartedExpiryPeriodMilliseconds,

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? serverPresencePingIntervalSeconds,
13161317
int? serverPresenceOfflineThresholdSeconds,
13171318
int? serverTypingStartedExpiryPeriodMilliseconds,
@@ -1366,6 +1367,7 @@ InitialSnapshot initialSnapshot({
13661367
zulipMergeBase: zulipMergeBase ?? recentZulipVersion,
13671368
alertWords: alertWords ?? ['klaxon'],
13681369
customProfileFields: customProfileFields ?? [],
1370+
maxChannelNameLength: maxChannelNameLength ?? 60,
13691371
serverPresencePingIntervalSeconds: serverPresencePingIntervalSeconds ?? 60,
13701372
serverPresenceOfflineThresholdSeconds: serverPresenceOfflineThresholdSeconds ?? 140,
13711373
serverTypingStartedExpiryPeriodMilliseconds:

0 commit comments

Comments
 (0)