Skip to content

Commit 6a3a1d9

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 1f66500 commit 6a3a1d9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/model/realm.dart

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

7777
Map<String, RealmDefaultExternalAccount> get realmDefaultExternalAccounts;
7878

79+
int get maxChannelNameLength;
7980
int get maxTopicLength;
8081

8182
//|//////////////////////////////
@@ -194,6 +195,8 @@ mixin ProxyRealmStore on RealmStore {
194195
@override
195196
Map<String, RealmDefaultExternalAccount> get realmDefaultExternalAccounts => realmStore.realmDefaultExternalAccounts;
196197
@override
198+
int get maxChannelNameLength => realmStore.maxChannelNameLength;
199+
@override
197200
int get maxTopicLength => realmStore.maxTopicLength;
198201
@override
199202
List<CustomProfileField> get customProfileFields => realmStore.customProfileFields;
@@ -244,6 +247,7 @@ class RealmStoreImpl extends HasUserGroupStore with RealmStore {
244247
realmDeleteOwnMessagePolicy = initialSnapshot.realmDeleteOwnMessagePolicy,
245248
_realmEmptyTopicDisplayName = initialSnapshot.realmEmptyTopicDisplayName,
246249
realmDefaultExternalAccounts = initialSnapshot.realmDefaultExternalAccounts,
250+
maxChannelNameLength = initialSnapshot.maxChannelNameLength,
247251
maxTopicLength = initialSnapshot.maxTopicLength,
248252
customProfileFields = _sortCustomProfileFields(initialSnapshot.customProfileFields);
249253

@@ -411,6 +415,8 @@ class RealmStoreImpl extends HasUserGroupStore with RealmStore {
411415
@override
412416
final Map<String, RealmDefaultExternalAccount> realmDefaultExternalAccounts;
413417

418+
@override
419+
final int maxChannelNameLength;
414420
@override
415421
final int maxTopicLength;
416422

0 commit comments

Comments
 (0)