Skip to content

Commit 3d1b7bf

Browse files
committed
store [nfc]: Move zulip{FeatureLevel,Version} to PerAccountStoreBase
1 parent 3b93fe7 commit 3d1b7bf

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

@@ -558,11 +564,6 @@ class PerAccountStore extends PerAccountStoreBase with ChangeNotifier, EmojiStor
558564
////////////////////////////////
559565
// Data attached to the realm or the server.
560566

561-
/// Always equal to `connection.zulipFeatureLevel`
562-
/// and `account.zulipFeatureLevel`.
563-
int get zulipFeatureLevel => connection.zulipFeatureLevel!;
564-
565-
String get zulipVersion => account.zulipVersion;
566567
final RealmWildcardMentionPolicy realmWildcardMentionPolicy; // TODO(#668): update this realm setting
567568
final bool realmMandatoryTopics; // TODO(#668): update this realm setting
568569
/// For docs, please see [InitialSnapshot.realmWaitingPeriodThreshold].

0 commit comments

Comments
 (0)