Skip to content

Commit 6618b38

Browse files
committed
store [nfc]: Move zulip{FeatureLevel,Version} to PerAccountStoreBase
1 parent 0c1f1ae commit 6618b38

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lib/model/store.dart

+6-5
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,12 @@ abstract class PerAccountStoreBase {
385385
/// This returns null if [reference] fails to parse as a URL.
386386
Uri? tryResolveUrl(String reference) => _tryResolveUrl(realmUrl, reference);
387387

388+
/// Always equal to `connection.zulipFeatureLevel`
389+
/// and `account.zulipFeatureLevel`.
390+
int get zulipFeatureLevel => connection.zulipFeatureLevel!;
391+
392+
String get zulipVersion => account.zulipVersion;
393+
388394
////////////////////////////////
389395
// Data attached to the self-account on the realm.
390396

@@ -554,11 +560,6 @@ class PerAccountStore extends PerAccountStoreBase with ChangeNotifier, EmojiStor
554560
////////////////////////////////
555561
// Data attached to the realm or the server.
556562

557-
/// Always equal to `connection.zulipFeatureLevel`
558-
/// and `account.zulipFeatureLevel`.
559-
int get zulipFeatureLevel => connection.zulipFeatureLevel!;
560-
561-
String get zulipVersion => account.zulipVersion;
562563
final RealmWildcardMentionPolicy realmWildcardMentionPolicy; // TODO(#668): update this realm setting
563564
final bool realmMandatoryTopics; // TODO(#668): update this realm setting
564565
/// For docs, please see [InitialSnapshot.realmWaitingPeriodThreshold].

0 commit comments

Comments
 (0)