Skip to content

Commit 5d0188f

Browse files
committed
store [nfc]: Organize substore parameters uniformly
1 parent 1e11327 commit 5d0188f

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

lib/model/store.dart

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -489,23 +489,20 @@ class PerAccountStore extends PerAccountStoreBase with
489489
groups: UserGroupStoreImpl(core: core,
490490
groups: initialSnapshot.realmUserGroups),
491491
realm: realm,
492-
emoji: EmojiStoreImpl(
493-
core: core, allRealmEmoji: initialSnapshot.realmEmoji),
492+
emoji: EmojiStoreImpl(core: core,
493+
allRealmEmoji: initialSnapshot.realmEmoji),
494494
userSettings: initialSnapshot.userSettings,
495-
savedSnippets: SavedSnippetStoreImpl(
496-
core: core, savedSnippets: initialSnapshot.savedSnippets ?? []),
495+
savedSnippets: SavedSnippetStoreImpl(core: core,
496+
savedSnippets: initialSnapshot.savedSnippets ?? []),
497497
typingNotifier: TypingNotifier(realm: realm),
498498
users: UserStoreImpl(core: core, initialSnapshot: initialSnapshot),
499499
typingStatus: TypingStatus(realm: realm),
500500
presence: Presence(realm: realm,
501501
initial: initialSnapshot.presences),
502502
channels: channels,
503503
messages: MessageStoreImpl(realm: realm),
504-
unreads: Unreads(
505-
initial: initialSnapshot.unreadMsgs,
506-
core: core,
507-
channelStore: channels,
508-
),
504+
unreads: Unreads(core: core, channelStore: channels,
505+
initial: initialSnapshot.unreadMsgs),
509506
recentDmConversationsView: RecentDmConversationsView(core: core,
510507
initial: initialSnapshot.recentPrivateConversations),
511508
recentSenders: RecentSenders(),

lib/model/unreads.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ import 'store.dart';
3737
// messages and refresh [mentions] (see [mentions] dartdoc).
3838
class Unreads extends PerAccountStoreBase with ChangeNotifier {
3939
factory Unreads({
40-
required UnreadMessagesSnapshot initial,
4140
required CorePerAccountStore core,
4241
required ChannelStore channelStore,
42+
required UnreadMessagesSnapshot initial,
4343
}) {
4444
final streams = <int, TopicKeyedMap<QueueList<int>>>{};
4545
final dms = <DmNarrow, QueueList<int>>{};

0 commit comments

Comments
 (0)