Skip to content

Commit 361fd27

Browse files
committed
store: Add restrict-message-editing fields to PerAccountStore
1 parent 1ba1cf2 commit 361fd27

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/model/store.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,8 @@ class PerAccountStore extends PerAccountStoreBase with ChangeNotifier, EmojiStor
468468
realmWaitingPeriodThreshold: initialSnapshot.realmWaitingPeriodThreshold,
469469
maxFileUploadSizeMib: initialSnapshot.maxFileUploadSizeMib,
470470
realmEmptyTopicDisplayName: initialSnapshot.realmEmptyTopicDisplayName,
471+
realmAllowMessageEditing: initialSnapshot.realmAllowMessageEditing,
472+
realmMessageContentEditLimitSeconds: initialSnapshot.realmMessageContentEditLimitSeconds,
471473
realmDefaultExternalAccounts: initialSnapshot.realmDefaultExternalAccounts,
472474
customProfileFields: _sortCustomProfileFields(initialSnapshot.customProfileFields),
473475
emailAddressVisibility: initialSnapshot.emailAddressVisibility,
@@ -506,6 +508,8 @@ class PerAccountStore extends PerAccountStoreBase with ChangeNotifier, EmojiStor
506508
required this.realmWaitingPeriodThreshold,
507509
required this.maxFileUploadSizeMib,
508510
required String? realmEmptyTopicDisplayName,
511+
required this.realmAllowMessageEditing,
512+
required this.realmMessageContentEditLimitSeconds,
509513
required this.realmDefaultExternalAccounts,
510514
required this.customProfileFields,
511515
required this.emailAddressVisibility,
@@ -561,6 +565,8 @@ class PerAccountStore extends PerAccountStoreBase with ChangeNotifier, EmojiStor
561565
final bool realmMandatoryTopics; // TODO(#668): update this realm setting
562566
/// For docs, please see [InitialSnapshot.realmWaitingPeriodThreshold].
563567
final int realmWaitingPeriodThreshold; // TODO(#668): update this realm setting
568+
final bool realmAllowMessageEditing; // TODO(#668): update this realm setting
569+
final int? realmMessageContentEditLimitSeconds; // TODO(#668): update this realm setting
564570
final int maxFileUploadSizeMib; // No event for this.
565571

566572
/// The display name to use for empty topics.

0 commit comments

Comments
 (0)