Skip to content

Commit

Permalink
Merge pull request shiosyakeyakini-info#654 from Npepperlinux/fix/swi…
Browse files Browse the repository at this point in the history
…tch_uri_url_open

リモートのユーザーページをブラウザで開くときに`uri`ではなく`url`を優先する
  • Loading branch information
shiosyakeyakini-info authored Nov 10, 2024
2 parents b1820d1 + b4bbb82 commit aaec0b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/view/user_page/user_control_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class UserControlDialog extends HookConsumerWidget implements AutoRouteWrapper {
Navigator.of(context).pop();
});
final openBrowserAsRemote = useAsync(() async {
final uri = response.uri ?? response.url;
final uri = response.url ?? response.uri;
if (uri == null) return;
await launchUrl(uri, mode: LaunchMode.externalApplication);
if (!context.mounted) return;
Expand Down

0 comments on commit aaec0b9

Please sign in to comment.