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