Skip to content

Commit 3db4161

Browse files
committed
realm: Add RealmStore.maxChannelNameLength
Right now, this is useful in how far back from the cursor we look to find a channel-link autocomplete (actually any autocomplete) interaction in compose box.
1 parent 65ad611 commit 3db4161

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 maxChannelNameLength;
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 maxChannelNameLength => realmStore.maxChannelNameLength;
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+
maxChannelNameLength = initialSnapshot.maxChannelNameLength,
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 maxChannelNameLength;
416+
409417
@override
410418
List<CustomProfileField> customProfileFields;
411419

0 commit comments

Comments
 (0)