Skip to content

Commit fe3538b

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 ebffb0c commit fe3538b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/widgets/content.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1454,7 +1454,7 @@ void _launchUrl(BuildContext context, String urlString) async {
14541454
showErrorDialog(context: context,
14551455
title: zulipLocalizations.errorCouldNotOpenLinkTitle,
14561456
message: [
1457-
zulipLocalizations.errorCouldNotOpenLink(urlString),
1457+
zulipLocalizations.errorCouldNotOpenLink(url.toString()),
14581458
if (errorMessage != null) errorMessage,
14591459
].join("\n\n"));
14601460
}

0 commit comments

Comments
 (0)