mirror of
				https://gitlab.com/famedly/fluffychat.git
				synced 2025-11-04 06:17:26 +01:00 
			
		
		
		
	fix: Open matrixTo links
This commit is contained in:
		
							parent
							
								
									abe200f90a
								
							
						
					
					
						commit
						8aa0670e83
					
				@ -119,14 +119,10 @@ class ChatListController extends State<ChatList> {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  void _processIncomingUris(String text) async {
 | 
			
		||||
    if (text == null || !text.startsWith(AppConfig.appOpenUrlScheme)) return;
 | 
			
		||||
    if (text.toLowerCase().startsWith(AppConfig.inviteLinkPrefix) ||
 | 
			
		||||
        (text.toLowerCase().startsWith(AppConfig.schemePrefix) &&
 | 
			
		||||
            !RegExp(r'\s').hasMatch(text))) {
 | 
			
		||||
      VRouter.of(context).to('/rooms');
 | 
			
		||||
      UrlLauncher(context, text).openMatrixToUrl();
 | 
			
		||||
      return;
 | 
			
		||||
    }
 | 
			
		||||
    if (text == null) return;
 | 
			
		||||
    VRouter.of(context).to('/rooms');
 | 
			
		||||
    UrlLauncher(context, text).openMatrixToUrl();
 | 
			
		||||
    return;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  void _initReceiveSharingIntent() {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user