fix: Share on iOS

This commit is contained in:
Christian Pauly 2021-03-28 10:43:16 +02:00
commit a73318e589
8 changed files with 659 additions and 13 deletions

View file

@ -104,9 +104,9 @@ class _HomeserverPickerState extends State<HomeserverPicker> {
.any((flow) => flow.type == AuthenticationTypes.sso)) {
final redirectUrl = kIsWeb
? html.window.location.href
: '${Uri.encodeQueryComponent(AppConfig.appOpenUrlScheme.toLowerCase() + '://sso')}';
: AppConfig.appOpenUrlScheme.toLowerCase() + '://sso';
await launch(
'${Matrix.of(context).client.homeserver?.toString()}/_matrix/client/r0/login/sso/redirect?redirectUrl=$redirectUrl');
'${Matrix.of(context).client.homeserver?.toString()}/_matrix/client/r0/login/sso/redirect?redirectUrl=${Uri.encodeQueryComponent(redirectUrl)}');
}
} catch (e) {
// ignore: unawaited_futures