Skip to content

Commit dcfc369

Browse files
committed
initial_snapshot: Add emailAddressVisibility override in InitialSnapshot method
The InitialSnapshot method does not override the emailAddressVisibility in the example_data.dart with the value passed in the function arguments. This commit fixes the bug
1 parent 03dfdf1 commit dcfc369

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/example_data.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ InitialSnapshot initialSnapshot({
804804
zulipMergeBase: zulipMergeBase ?? recentZulipVersion,
805805
alertWords: alertWords ?? ['klaxon'],
806806
customProfileFields: customProfileFields ?? [],
807-
emailAddressVisibility: EmailAddressVisibility.everyone,
807+
emailAddressVisibility: emailAddressVisibility ?? EmailAddressVisibility.everyone,
808808
serverTypingStartedExpiryPeriodMilliseconds:
809809
serverTypingStartedExpiryPeriodMilliseconds ?? 15000,
810810
serverTypingStoppedWaitPeriodMilliseconds:

0 commit comments

Comments
 (0)