mirror of
				https://gitlab.com/famedly/fluffychat.git
				synced 2025-11-04 06:17:26 +01:00 
			
		
		
		
	feat: Android SSO in webview
This commit is contained in:
		
							parent
							
								
									12eb09f553
								
							
						
					
					
						commit
						befd8e1160
					
				@ -208,11 +208,11 @@ class HomeserverPickerController extends State<HomeserverPicker> {
 | 
			
		||||
        : AppConfig.appOpenUrlScheme.toLowerCase() + '://login';
 | 
			
		||||
    final url =
 | 
			
		||||
        '${Matrix.of(context).client.homeserver?.toString()}/_matrix/client/r0/login/sso/redirect/${Uri.encodeComponent(id)}?redirectUrl=${Uri.encodeQueryComponent(redirectUrl)}';
 | 
			
		||||
    if (PlatformInfos.isIOS) {
 | 
			
		||||
    if (PlatformInfos.isMobile) {
 | 
			
		||||
      browser ??= ChromeSafariBrowser();
 | 
			
		||||
      browser.open(url: Uri.parse(url));
 | 
			
		||||
    } else {
 | 
			
		||||
      launch(redirectUrl, forceWebView: true);
 | 
			
		||||
      launch(redirectUrl);
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1179,7 +1179,7 @@ packages:
 | 
			
		||||
      name: swipe_to_action
 | 
			
		||||
      url: "https://pub.dartlang.org"
 | 
			
		||||
    source: hosted
 | 
			
		||||
    version: "0.1.0"
 | 
			
		||||
    version: "0.2.0"
 | 
			
		||||
  synchronized:
 | 
			
		||||
    dependency: transitive
 | 
			
		||||
    description:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user