Skip to content

Commit 506a89c

Browse files
committed
store: Add emailAddressVisibility to PerAccountStore
1 parent 0b733ee commit 506a89c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/model/store.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ class PerAccountStore extends ChangeNotifier with ChannelStore, MessageStore {
236236
realmDefaultExternalAccounts: initialSnapshot.realmDefaultExternalAccounts,
237237
realmEmoji: initialSnapshot.realmEmoji,
238238
customProfileFields: _sortCustomProfileFields(initialSnapshot.customProfileFields),
239+
emailAddressVisibility: initialSnapshot.emailAddressVisibility,
239240
accountId: accountId,
240241
selfUserId: account.userId,
241242
userSettings: initialSnapshot.userSettings,
@@ -269,6 +270,7 @@ class PerAccountStore extends ChangeNotifier with ChannelStore, MessageStore {
269270
required this.realmDefaultExternalAccounts,
270271
required this.realmEmoji,
271272
required this.customProfileFields,
273+
required this.emailAddressVisibility,
272274
required this.accountId,
273275
required this.selfUserId,
274276
required this.userSettings,
@@ -311,6 +313,8 @@ class PerAccountStore extends ChangeNotifier with ChannelStore, MessageStore {
311313
final Map<String, RealmDefaultExternalAccount> realmDefaultExternalAccounts;
312314
Map<String, RealmEmojiItem> realmEmoji;
313315
List<CustomProfileField> customProfileFields;
316+
/// For docs, please see [InitialSnapshot.emailAddressVisibility].
317+
final EmailAddressVisibility? emailAddressVisibility; // TODO(#668): update this realm setting
314318

315319
////////////////////////////////
316320
// Data attached to the self-account on the realm.

0 commit comments

Comments
 (0)