@@ -362,6 +362,12 @@ abstract class PerAccountStoreBase {
362
362
363
363
ApiConnection get connection => _core.connection;
364
364
365
+ ////////////////////////////////
366
+ // Data attached to the realm or the server.
367
+
368
+ /// Always equal to `account.realmUrl` and `connection.realmUrl` .
369
+ Uri get realmUrl => connection.realmUrl;
370
+
365
371
////////////////////////////////
366
372
// Data attached to the self-account on the realm.
367
373
@@ -425,7 +431,6 @@ class PerAccountStore extends PerAccountStoreBase with ChangeNotifier, EmojiStor
425
431
return PerAccountStore ._(
426
432
core: core,
427
433
queueId: queueId,
428
- realmUrl: realmUrl,
429
434
realmWildcardMentionPolicy: initialSnapshot.realmWildcardMentionPolicy,
430
435
realmMandatoryTopics: initialSnapshot.realmMandatoryTopics,
431
436
realmWaitingPeriodThreshold: initialSnapshot.realmWaitingPeriodThreshold,
@@ -467,7 +472,6 @@ class PerAccountStore extends PerAccountStoreBase with ChangeNotifier, EmojiStor
467
472
PerAccountStore ._({
468
473
required super .core,
469
474
required this .queueId,
470
- required this .realmUrl,
471
475
required this .realmWildcardMentionPolicy,
472
476
required this .realmMandatoryTopics,
473
477
required this .realmWaitingPeriodThreshold,
@@ -486,8 +490,7 @@ class PerAccountStore extends PerAccountStoreBase with ChangeNotifier, EmojiStor
486
490
required this .unreads,
487
491
required this .recentDmConversationsView,
488
492
required this .recentSenders,
489
- }) : assert (realmUrl == core.connection.realmUrl),
490
- assert (emoji.realmUrl == realmUrl),
493
+ }) : assert (emoji.realmUrl == core.connection.realmUrl),
491
494
_realmEmptyTopicDisplayName = realmEmptyTopicDisplayName,
492
495
_emoji = emoji,
493
496
_users = users,
@@ -521,9 +524,6 @@ class PerAccountStore extends PerAccountStoreBase with ChangeNotifier, EmojiStor
521
524
////////////////////////////////
522
525
// Data attached to the realm or the server.
523
526
524
- /// Always equal to `account.realmUrl` and `connection.realmUrl` .
525
- final Uri realmUrl;
526
-
527
527
/// Resolve [reference] as a URL relative to [realmUrl] .
528
528
///
529
529
/// This returns null if [reference] fails to parse as a URL.
0 commit comments