@@ -329,9 +329,10 @@ class AccountNotFoundException implements Exception {}
329
329
330
330
/// A bundle of items that are useful to [PerAccountStore] and its substores.
331
331
class CorePerAccountStore {
332
- CorePerAccountStore ({required this .connection});
332
+ CorePerAccountStore ({required this .connection, required this .queueId });
333
333
334
334
final ApiConnection connection; // TODO(#135): update zulipFeatureLevel with events
335
+ final String queueId;
335
336
}
336
337
337
338
/// A base class for [PerAccountStore] and its substores,
@@ -343,6 +344,7 @@ abstract class PerAccountStoreBase {
343
344
final CorePerAccountStore _core;
344
345
345
346
ApiConnection get connection => _core.connection;
347
+ String get queueId => _core.queueId;
346
348
}
347
349
348
350
/// Store for the user's data for a given Zulip account.
@@ -386,12 +388,11 @@ class PerAccountStore extends PerAccountStoreBase with ChangeNotifier, EmojiStor
386
388
}
387
389
388
390
final realmUrl = account.realmUrl;
389
- final core = CorePerAccountStore (connection: connection);
391
+ final core = CorePerAccountStore (connection: connection, queueId : queueId );
390
392
final channels = ChannelStoreImpl (initialSnapshot: initialSnapshot);
391
393
return PerAccountStore ._(
392
394
globalStore: globalStore,
393
395
core: core,
394
- queueId: queueId,
395
396
realmUrl: realmUrl,
396
397
realmWildcardMentionPolicy: initialSnapshot.realmWildcardMentionPolicy,
397
398
realmMandatoryTopics: initialSnapshot.realmMandatoryTopics,
@@ -435,7 +436,6 @@ class PerAccountStore extends PerAccountStoreBase with ChangeNotifier, EmojiStor
435
436
PerAccountStore ._({
436
437
required GlobalStore globalStore,
437
438
required super .core,
438
- required this .queueId,
439
439
required this .realmUrl,
440
440
required this .realmWildcardMentionPolicy,
441
441
required this .realmMandatoryTopics,
@@ -474,7 +474,6 @@ class PerAccountStore extends PerAccountStoreBase with ChangeNotifier, EmojiStor
474
474
475
475
final GlobalStore _globalStore;
476
476
477
- final String queueId;
478
477
UpdateMachine ? get updateMachine => _updateMachine;
479
478
UpdateMachine ? _updateMachine;
480
479
set updateMachine (UpdateMachine ? value) {
0 commit comments