Skip to content

Commit 030e441

Browse files
sm-sayedignprice
authored andcommitted
realm: Add RealmStore.maxTopicLength
1 parent c8e2d2f commit 030e441

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/model/realm.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ mixin RealmStore on PerAccountStoreBase, UserGroupStore {
7676

7777
Map<String, RealmDefaultExternalAccount> get realmDefaultExternalAccounts;
7878

79+
int get maxTopicLength;
80+
7981
//|//////////////////////////////
8082
// Realm settings with their own events.
8183

@@ -192,6 +194,8 @@ mixin ProxyRealmStore on RealmStore {
192194
@override
193195
Map<String, RealmDefaultExternalAccount> get realmDefaultExternalAccounts => realmStore.realmDefaultExternalAccounts;
194196
@override
197+
int get maxTopicLength => realmStore.maxTopicLength;
198+
@override
195199
List<CustomProfileField> get customProfileFields => realmStore.customProfileFields;
196200
@override
197201
bool selfHasPassedWaitingPeriod({required DateTime byDate}) =>
@@ -240,6 +244,7 @@ class RealmStoreImpl extends HasUserGroupStore with RealmStore {
240244
realmDeleteOwnMessagePolicy = initialSnapshot.realmDeleteOwnMessagePolicy,
241245
_realmEmptyTopicDisplayName = initialSnapshot.realmEmptyTopicDisplayName,
242246
realmDefaultExternalAccounts = initialSnapshot.realmDefaultExternalAccounts,
247+
maxTopicLength = initialSnapshot.maxTopicLength,
243248
customProfileFields = _sortCustomProfileFields(initialSnapshot.customProfileFields);
244249

245250
@override
@@ -406,6 +411,9 @@ class RealmStoreImpl extends HasUserGroupStore with RealmStore {
406411
@override
407412
final Map<String, RealmDefaultExternalAccount> realmDefaultExternalAccounts;
408413

414+
@override
415+
final int maxTopicLength;
416+
409417
@override
410418
List<CustomProfileField> customProfileFields;
411419

0 commit comments

Comments
 (0)