Skip to content

Commit 8b7ee0f

Browse files
rajveermalviyagnprice
authored andcommitted
example data: Change realmIcon default value in eg.serverSettings
Observed value for CZO is: /user_avatars/2/realm/icon.png?version=3 A relative URL rather than absolute, so change it to match that observed value. API docs do not specify a format, see: #1860 (comment) Also `GetServerSettingsResult.realmIcon` was never read before so it's NFC change in regards to the tests.
1 parent 66a0c17 commit 8b7ee0f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/example_data.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,9 @@ int utcTimestamp([DateTime? dateTime]) {
9292
final Uri realmUrl = Uri.parse('https://chat.example/');
9393
Uri get _realmUrl => realmUrl;
9494

95+
final Uri realmIcon = Uri.parse('/user_avatars/2/realm/icon.png?version=3');
96+
Uri get _realmIcon => realmIcon;
97+
9598
const String recentZulipVersion = '9.0';
9699
const int recentZulipFeatureLevel = 382;
97100
const int futureZulipFeatureLevel = 9999;
@@ -125,7 +128,7 @@ GetServerSettingsResult serverSettings({
125128
requireEmailFormatUsernames: requireEmailFormatUsernames ?? true,
126129
realmUrl: realmUrl ?? _realmUrl,
127130
realmName: realmName ?? 'Example Zulip organization',
128-
realmIcon: realmIcon ?? Uri.parse('$realmUrl/icon.png'),
131+
realmIcon: realmIcon ?? _realmIcon,
129132
realmDescription: realmDescription ?? 'An example Zulip organization',
130133
realmWebPublicAccessEnabled: realmWebPublicAccessEnabled ?? false,
131134
);

0 commit comments

Comments
 (0)