@@ -27,6 +27,7 @@ import 'localizations.dart';
27
27
import 'message.dart' ;
28
28
import 'message_list.dart' ;
29
29
import 'presence.dart' ;
30
+ import 'realm.dart' ;
30
31
import 'recent_dm_conversations.dart' ;
31
32
import 'recent_senders.dart' ;
32
33
import 'channel.dart' ;
@@ -437,6 +438,7 @@ Uri? tryResolveUrl(Uri baseUrl, String reference) {
437
438
class PerAccountStore extends PerAccountStoreBase with
438
439
ChangeNotifier ,
439
440
UserGroupStore , ProxyUserGroupStore ,
441
+ RealmStore ,
440
442
EmojiStore ,
441
443
SavedSnippetStore ,
442
444
UserStore ,
@@ -498,6 +500,7 @@ class PerAccountStore extends PerAccountStoreBase with
498
500
realmDefaultExternalAccounts: initialSnapshot.realmDefaultExternalAccounts,
499
501
customProfileFields: _sortCustomProfileFields (initialSnapshot.customProfileFields),
500
502
emailAddressVisibility: initialSnapshot.emailAddressVisibility,
503
+ realm: RealmStoreImpl (core: core, initialSnapshot: initialSnapshot),
501
504
emoji: EmojiStoreImpl (
502
505
core: core, allRealmEmoji: initialSnapshot.realmEmoji),
503
506
userSettings: initialSnapshot.userSettings,
@@ -548,6 +551,7 @@ class PerAccountStore extends PerAccountStoreBase with
548
551
required this .realmDefaultExternalAccounts,
549
552
required this .customProfileFields,
550
553
required this .emailAddressVisibility,
554
+ required RealmStoreImpl realm,
551
555
required EmojiStoreImpl emoji,
552
556
required this .userSettings,
553
557
required SavedSnippetStoreImpl savedSnippets,
@@ -562,6 +566,7 @@ class PerAccountStore extends PerAccountStoreBase with
562
566
required this .recentSenders,
563
567
}) : _groups = groups,
564
568
_realmEmptyTopicDisplayName = realmEmptyTopicDisplayName,
569
+ _realm = realm,
565
570
_emoji = emoji,
566
571
_savedSnippets = savedSnippets,
567
572
_users = users,
@@ -630,6 +635,8 @@ class PerAccountStore extends PerAccountStoreBase with
630
635
/// For docs, please see [InitialSnapshot.emailAddressVisibility] .
631
636
final EmailAddressVisibility ? emailAddressVisibility; // TODO(#668): update this realm setting
632
637
638
+ final RealmStoreImpl _realm; // ignore: unused_field // TODO
639
+
633
640
////////////////////////////////
634
641
// The realm's repertoire of available emoji.
635
642
0 commit comments