Skip to content

Commit 4e19f3d

Browse files
committed
content: Use url.toString() instead of urlString in error message
Just so when we extract out much of this code for reuse, it won't need a `urlString` param alongside `url`. I think the effect is just that when the URL is a relative URL, the error dialog will always show it as an absolute URL on the realm.
1 parent 14afa76 commit 4e19f3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/widgets/content.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,7 @@ void _launchUrl(BuildContext context, String urlString) async {
14481448
showErrorDialog(context: context,
14491449
title: zulipLocalizations.errorCouldNotOpenLinkTitle,
14501450
message: [
1451-
zulipLocalizations.errorCouldNotOpenLink(urlString),
1451+
zulipLocalizations.errorCouldNotOpenLink(url.toString()),
14521452
if (errorMessage != null) errorMessage,
14531453
].join("\n\n"));
14541454
}

0 commit comments

Comments
 (0)