Skip to content

Commit c3c4d0f

Browse files
committed
store [nfc]: Move zulipFeatureLevel to PerAccountStoreBase
1 parent 0c1f1ae commit c3c4d0f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/model/store.dart

+4-4
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,10 @@ abstract class PerAccountStoreBase {
372372

373373
ApiConnection get connection => _core.connection;
374374

375+
/// Always equal to `connection.zulipFeatureLevel`
376+
/// and `account.zulipFeatureLevel`.
377+
int get zulipFeatureLevel => connection.zulipFeatureLevel!;
378+
375379
String get queueId => _core.queueId;
376380

377381
////////////////////////////////
@@ -554,10 +558,6 @@ class PerAccountStore extends PerAccountStoreBase with ChangeNotifier, EmojiStor
554558
////////////////////////////////
555559
// Data attached to the realm or the server.
556560

557-
/// Always equal to `connection.zulipFeatureLevel`
558-
/// and `account.zulipFeatureLevel`.
559-
int get zulipFeatureLevel => connection.zulipFeatureLevel!;
560-
561561
String get zulipVersion => account.zulipVersion;
562562
final RealmWildcardMentionPolicy realmWildcardMentionPolicy; // TODO(#668): update this realm setting
563563
final bool realmMandatoryTopics; // TODO(#668): update this realm setting

0 commit comments

Comments
 (0)