@@ -474,9 +474,12 @@ class PerAccountStore extends PerAccountStoreBase with ChangeNotifier, EmojiStor
474
474
final channels = ChannelStoreImpl (initialSnapshot: initialSnapshot);
475
475
return PerAccountStore ._(
476
476
core: core,
477
+ serverPresencePingIntervalSeconds: initialSnapshot.serverPresencePingIntervalSeconds,
478
+ serverPresenceOfflineThresholdSeconds: initialSnapshot.serverPresenceOfflineThresholdSeconds,
477
479
realmWildcardMentionPolicy: initialSnapshot.realmWildcardMentionPolicy,
478
480
realmMandatoryTopics: initialSnapshot.realmMandatoryTopics,
479
481
realmWaitingPeriodThreshold: initialSnapshot.realmWaitingPeriodThreshold,
482
+ realmPresenceDisabled: initialSnapshot.realmPresenceDisabled,
480
483
maxFileUploadSizeMib: initialSnapshot.maxFileUploadSizeMib,
481
484
realmEmptyTopicDisplayName: initialSnapshot.realmEmptyTopicDisplayName,
482
485
realmAllowMessageEditing: initialSnapshot.realmAllowMessageEditing,
@@ -516,9 +519,12 @@ class PerAccountStore extends PerAccountStoreBase with ChangeNotifier, EmojiStor
516
519
517
520
PerAccountStore ._({
518
521
required super .core,
522
+ required this .serverPresencePingIntervalSeconds,
523
+ required this .serverPresenceOfflineThresholdSeconds,
519
524
required this .realmWildcardMentionPolicy,
520
525
required this .realmMandatoryTopics,
521
526
required this .realmWaitingPeriodThreshold,
527
+ required this .realmPresenceDisabled,
522
528
required this .maxFileUploadSizeMib,
523
529
required String ? realmEmptyTopicDisplayName,
524
530
required this .realmAllowMessageEditing,
@@ -570,12 +576,16 @@ class PerAccountStore extends PerAccountStoreBase with ChangeNotifier, EmojiStor
570
576
////////////////////////////////
571
577
// Data attached to the realm or the server.
572
578
579
+ final int serverPresencePingIntervalSeconds;
580
+ final int serverPresenceOfflineThresholdSeconds;
581
+
573
582
final RealmWildcardMentionPolicy realmWildcardMentionPolicy; // TODO(#668): update this realm setting
574
583
final bool realmMandatoryTopics; // TODO(#668): update this realm setting
575
584
/// For docs, please see [InitialSnapshot.realmWaitingPeriodThreshold] .
576
585
final int realmWaitingPeriodThreshold; // TODO(#668): update this realm setting
577
586
final bool realmAllowMessageEditing; // TODO(#668): update this realm setting
578
587
final int ? realmMessageContentEditLimitSeconds; // TODO(#668): update this realm setting
588
+ final bool realmPresenceDisabled; // TODO(#668): update this realm setting
579
589
final int maxFileUploadSizeMib; // No event for this.
580
590
581
591
/// The display name to use for empty topics.
0 commit comments