Skip to content

Commit 6354f28

Browse files
chrisbobbegnprice
authored andcommitted
test: Add userSettings default to eg.initialSnapshot
1 parent 56964b1 commit 6354f28

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/example_data.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,11 @@ InitialSnapshot initialSnapshot({
450450
subscriptions: subscriptions ?? [], // TODO add subscriptions to default
451451
unreadMsgs: unreadMsgs ?? _unreadMsgs(),
452452
streams: streams ?? [], // TODO add streams to default
453-
userSettings: userSettings, // TODO add userSettings to default
453+
userSettings: userSettings ?? UserSettings(
454+
twentyFourHourTime: false,
455+
displayEmojiReactionUsers: true,
456+
emojiset: Emojiset.google,
457+
),
454458
realmDefaultExternalAccounts: realmDefaultExternalAccounts ?? {},
455459
maxFileUploadSizeMib: maxFileUploadSizeMib ?? 25,
456460
realmUsers: realmUsers ?? [],

0 commit comments

Comments
 (0)