Skip to content

Commit b1e6021

Browse files
committed
model: Add PerAccountStore.userSettings
1 parent e438374 commit b1e6021

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
@@ -151,6 +151,7 @@ class PerAccountStore extends ChangeNotifier {
151151
required InitialSnapshot initialSnapshot,
152152
}) : zulipVersion = initialSnapshot.zulipVersion,
153153
maxFileUploadSizeMib = initialSnapshot.maxFileUploadSizeMib,
154+
userSettings = initialSnapshot.userSettings,
154155
users = Map.fromEntries(
155156
initialSnapshot.realmUsers
156157
.followedBy(initialSnapshot.realmNonActiveUsers)
@@ -172,6 +173,9 @@ class PerAccountStore extends ChangeNotifier {
172173
final String zulipVersion; // TODO get from account; update there on initial snapshot
173174
final int maxFileUploadSizeMib; // No event for this.
174175

176+
// Data attached to the self-account on the realm.
177+
final UserSettings? userSettings; // TODO(#135) update with user_settings/update event
178+
175179
// Users and data about them.
176180
final Map<int, User> users;
177181

0 commit comments

Comments
 (0)