Skip to content

Commit c8e2d2f

Browse files
committed
api: Add InitialSnapshot.maxTopicLength
1 parent 1699aa5 commit c8e2d2f

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+
final int maxTopicLength;
28+
2729
final int serverPresencePingIntervalSeconds;
2830
final int serverPresenceOfflineThresholdSeconds;
2931

@@ -158,6 +160,7 @@ class InitialSnapshot {
158160
required this.zulipMergeBase,
159161
required this.alertWords,
160162
required this.customProfileFields,
163+
required this.maxTopicLength,
161164
required this.serverPresencePingIntervalSeconds,
162165
required this.serverPresenceOfflineThresholdSeconds,
163166
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? maxTopicLength,
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+
maxTopicLength: maxTopicLength ?? 60,
13691371
serverPresencePingIntervalSeconds: serverPresencePingIntervalSeconds ?? 60,
13701372
serverPresenceOfflineThresholdSeconds: serverPresenceOfflineThresholdSeconds ?? 140,
13711373
serverTypingStartedExpiryPeriodMilliseconds:

0 commit comments

Comments
 (0)