Skip to content

Commit e7abf31

Browse files
committed
store: Add restrict-message-editing fields to PerAccountStore
1 parent 4808904 commit e7abf31

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
@@ -472,6 +472,8 @@ class PerAccountStore extends PerAccountStoreBase with ChangeNotifier, EmojiStor
472472
realmWaitingPeriodThreshold: initialSnapshot.realmWaitingPeriodThreshold,
473473
maxFileUploadSizeMib: initialSnapshot.maxFileUploadSizeMib,
474474
realmEmptyTopicDisplayName: initialSnapshot.realmEmptyTopicDisplayName,
475+
realmAllowMessageEditing: initialSnapshot.realmAllowMessageEditing,
476+
realmMessageContentEditLimitSeconds: initialSnapshot.realmMessageContentEditLimitSeconds,
475477
realmDefaultExternalAccounts: initialSnapshot.realmDefaultExternalAccounts,
476478
customProfileFields: _sortCustomProfileFields(initialSnapshot.customProfileFields),
477479
emailAddressVisibility: initialSnapshot.emailAddressVisibility,
@@ -509,6 +511,8 @@ class PerAccountStore extends PerAccountStoreBase with ChangeNotifier, EmojiStor
509511
required this.realmWaitingPeriodThreshold,
510512
required this.maxFileUploadSizeMib,
511513
required String? realmEmptyTopicDisplayName,
514+
required this.realmAllowMessageEditing,
515+
required this.realmMessageContentEditLimitSeconds,
512516
required this.realmDefaultExternalAccounts,
513517
required this.customProfileFields,
514518
required this.emailAddressVisibility,
@@ -563,6 +567,8 @@ class PerAccountStore extends PerAccountStoreBase with ChangeNotifier, EmojiStor
563567
final bool realmMandatoryTopics; // TODO(#668): update this realm setting
564568
/// For docs, please see [InitialSnapshot.realmWaitingPeriodThreshold].
565569
final int realmWaitingPeriodThreshold; // TODO(#668): update this realm setting
570+
final bool realmAllowMessageEditing; // TODO(#668): update this realm setting
571+
final int? realmMessageContentEditLimitSeconds; // TODO(#668): update this realm setting
566572
final int maxFileUploadSizeMib; // No event for this.
567573

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

0 commit comments

Comments
 (0)