@@ -338,13 +338,15 @@ class CorePerAccountStore {
338
338
CorePerAccountStore ._({
339
339
required GlobalStore globalStore,
340
340
required this .connection,
341
+ required this .queueId,
341
342
required this .accountId,
342
343
required this .selfUserId,
343
344
}) : _globalStore = globalStore,
344
345
assert (connection.realmUrl == globalStore.getAccount (accountId)! .realmUrl);
345
346
346
347
final GlobalStore _globalStore;
347
348
final ApiConnection connection; // TODO(#135): update zulipFeatureLevel with events
349
+ final String queueId;
348
350
final int accountId;
349
351
350
352
// This isn't strictly needed as a field; it could be a getter
@@ -384,6 +386,8 @@ abstract class PerAccountStoreBase {
384
386
////////////////////////////////
385
387
// Data attached to the self-account on the realm.
386
388
389
+ String get queueId => _core.queueId;
390
+
387
391
int get accountId => _core.accountId;
388
392
389
393
/// The [Account] this store belongs to.
@@ -456,13 +460,13 @@ class PerAccountStore extends PerAccountStoreBase with ChangeNotifier, EmojiStor
456
460
final core = CorePerAccountStore ._(
457
461
globalStore: globalStore,
458
462
connection: connection,
463
+ queueId: queueId,
459
464
accountId: accountId,
460
465
selfUserId: account.userId,
461
466
);
462
467
final channels = ChannelStoreImpl (initialSnapshot: initialSnapshot);
463
468
return PerAccountStore ._(
464
469
core: core,
465
- queueId: queueId,
466
470
realmWildcardMentionPolicy: initialSnapshot.realmWildcardMentionPolicy,
467
471
realmMandatoryTopics: initialSnapshot.realmMandatoryTopics,
468
472
realmWaitingPeriodThreshold: initialSnapshot.realmWaitingPeriodThreshold,
@@ -500,7 +504,6 @@ class PerAccountStore extends PerAccountStoreBase with ChangeNotifier, EmojiStor
500
504
501
505
PerAccountStore ._({
502
506
required super .core,
503
- required this .queueId,
504
507
required this .realmWildcardMentionPolicy,
505
508
required this .realmMandatoryTopics,
506
509
required this .realmWaitingPeriodThreshold,
@@ -531,7 +534,6 @@ class PerAccountStore extends PerAccountStoreBase with ChangeNotifier, EmojiStor
531
534
////////////////////////////////
532
535
// Where data comes from in the first place.
533
536
534
- final String queueId;
535
537
UpdateMachine ? get updateMachine => _updateMachine;
536
538
UpdateMachine ? _updateMachine;
537
539
set updateMachine (UpdateMachine ? value) {
0 commit comments