Skip to content

Commit 49539ff

Browse files
committed
realm [nfc]: Add server settings for typing status
1 parent 290067a commit 49539ff

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

lib/model/realm.dart

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ mixin RealmStore on PerAccountStoreBase {
1717
Duration get serverPresenceOfflineThreshold => Duration(seconds: serverPresenceOfflineThresholdSeconds);
1818
int get serverPresenceOfflineThresholdSeconds;
1919

20+
Duration get serverTypingStartedExpiryPeriod => Duration(milliseconds: serverTypingStartedExpiryPeriodMilliseconds);
21+
int get serverTypingStartedExpiryPeriodMilliseconds;
22+
Duration get serverTypingStoppedWaitPeriod => Duration(milliseconds: serverTypingStoppedWaitPeriodMilliseconds);
23+
int get serverTypingStoppedWaitPeriodMilliseconds;
24+
Duration get serverTypingStartedWaitPeriod => Duration(milliseconds: serverTypingStartedWaitPeriodMilliseconds);
25+
int get serverTypingStartedWaitPeriodMilliseconds;
26+
2027
RealmWildcardMentionPolicy get realmWildcardMentionPolicy;
2128
bool get realmMandatoryTopics;
2229
/// For docs, please see [InitialSnapshot.realmWaitingPeriodThreshold].
@@ -96,6 +103,12 @@ mixin ProxyRealmStore on RealmStore {
96103
@override
97104
int get serverPresenceOfflineThresholdSeconds => realmStore.serverPresenceOfflineThresholdSeconds;
98105
@override
106+
int get serverTypingStartedExpiryPeriodMilliseconds => realmStore.serverTypingStartedExpiryPeriodMilliseconds;
107+
@override
108+
int get serverTypingStoppedWaitPeriodMilliseconds => realmStore.serverTypingStoppedWaitPeriodMilliseconds;
109+
@override
110+
int get serverTypingStartedWaitPeriodMilliseconds => realmStore.serverTypingStartedWaitPeriodMilliseconds;
111+
@override
99112
RealmWildcardMentionPolicy get realmWildcardMentionPolicy => realmStore.realmWildcardMentionPolicy;
100113
@override
101114
bool get realmMandatoryTopics => realmStore.realmMandatoryTopics;
@@ -138,6 +151,9 @@ class RealmStoreImpl extends PerAccountStoreBase with RealmStore {
138151
}) :
139152
serverPresencePingIntervalSeconds = initialSnapshot.serverPresencePingIntervalSeconds,
140153
serverPresenceOfflineThresholdSeconds = initialSnapshot.serverPresenceOfflineThresholdSeconds,
154+
serverTypingStartedExpiryPeriodMilliseconds = initialSnapshot.serverTypingStartedExpiryPeriodMilliseconds,
155+
serverTypingStoppedWaitPeriodMilliseconds = initialSnapshot.serverTypingStoppedWaitPeriodMilliseconds,
156+
serverTypingStartedWaitPeriodMilliseconds = initialSnapshot.serverTypingStartedWaitPeriodMilliseconds,
141157
realmWildcardMentionPolicy = initialSnapshot.realmWildcardMentionPolicy,
142158
realmMandatoryTopics = initialSnapshot.realmMandatoryTopics,
143159
realmWaitingPeriodThreshold = initialSnapshot.realmWaitingPeriodThreshold,
@@ -155,6 +171,13 @@ class RealmStoreImpl extends PerAccountStoreBase with RealmStore {
155171
@override
156172
final int serverPresenceOfflineThresholdSeconds;
157173

174+
@override
175+
final int serverTypingStartedExpiryPeriodMilliseconds;
176+
@override
177+
final int serverTypingStoppedWaitPeriodMilliseconds;
178+
@override
179+
final int serverTypingStartedWaitPeriodMilliseconds;
180+
158181
@override
159182
final RealmWildcardMentionPolicy realmWildcardMentionPolicy; // TODO(#668): update this realm setting
160183
@override

0 commit comments

Comments
 (0)