@@ -272,6 +272,7 @@ class PerAccountStore extends ChangeNotifier with EmojiStore, ChannelStore, Mess
272
272
realmMandatoryTopics: initialSnapshot.realmMandatoryTopics,
273
273
realmWaitingPeriodThreshold: initialSnapshot.realmWaitingPeriodThreshold,
274
274
maxFileUploadSizeMib: initialSnapshot.maxFileUploadSizeMib,
275
+ realmEmptyTopicDisplayName: initialSnapshot.realmEmptyTopicDisplayName,
275
276
realmDefaultExternalAccounts: initialSnapshot.realmDefaultExternalAccounts,
276
277
customProfileFields: _sortCustomProfileFields (initialSnapshot.customProfileFields),
277
278
emailAddressVisibility: initialSnapshot.emailAddressVisibility,
@@ -317,6 +318,7 @@ class PerAccountStore extends ChangeNotifier with EmojiStore, ChannelStore, Mess
317
318
required this .realmMandatoryTopics,
318
319
required this .realmWaitingPeriodThreshold,
319
320
required this .maxFileUploadSizeMib,
321
+ required String ? realmEmptyTopicDisplayName,
320
322
required this .realmDefaultExternalAccounts,
321
323
required this .customProfileFields,
322
324
required this .emailAddressVisibility,
@@ -337,6 +339,7 @@ class PerAccountStore extends ChangeNotifier with EmojiStore, ChannelStore, Mess
337
339
assert (realmUrl == connection.realmUrl),
338
340
assert (emoji.realmUrl == realmUrl),
339
341
_globalStore = globalStore,
342
+ _realmEmptyTopicDisplayName = realmEmptyTopicDisplayName,
340
343
_emoji = emoji,
341
344
_channels = channels,
342
345
_messages = messages;
@@ -384,6 +387,11 @@ class PerAccountStore extends ChangeNotifier with EmojiStore, ChannelStore, Mess
384
387
/// For docs, please see [InitialSnapshot.realmWaitingPeriodThreshold] .
385
388
final int realmWaitingPeriodThreshold; // TODO(#668): update this realm setting
386
389
final int maxFileUploadSizeMib; // No event for this.
390
+ final String ? _realmEmptyTopicDisplayName; // TODO(#668): update this realm setting
391
+ String get realmEmptyTopicDisplayName {
392
+ assert (_realmEmptyTopicDisplayName != null ); // TODO(log)
393
+ return _realmEmptyTopicDisplayName ?? 'general chat' ;
394
+ }
387
395
final Map <String , RealmDefaultExternalAccount > realmDefaultExternalAccounts;
388
396
List <CustomProfileField > customProfileFields;
389
397
/// For docs, please see [InitialSnapshot.emailAddressVisibility] .
0 commit comments