mirror of
				https://gitlab.com/famedly/fluffychat.git
				synced 2025-11-04 06:17:26 +01:00 
			
		
		
		
	chore: Support new unifiedpush gateway discovery
This commit is contained in:
		
							parent
							
								
									5962f386f6
								
							
						
					
					
						commit
						9e96135ad6
					
				@ -346,7 +346,9 @@ class BackgroundPush {
 | 
			
		||||
          .first;
 | 
			
		||||
      final res =
 | 
			
		||||
          json.decode(utf8.decode((await http.get(Uri.parse(url))).bodyBytes));
 | 
			
		||||
      if (res['gateway'] == 'matrix') {
 | 
			
		||||
      if (res['gateway'] == 'matrix' ||
 | 
			
		||||
          (res['unifiedpush'] is Map &&
 | 
			
		||||
              res['unifiedpush']['gateway'] == 'matrix')) {
 | 
			
		||||
        endpoint = url;
 | 
			
		||||
      }
 | 
			
		||||
    } catch (e) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user