mirror of
				https://gitlab.com/famedly/fluffychat.git
				synced 2025-11-04 06:17:26 +01:00 
			
		
		
		
	Explicitly add Content-Type header on emote upload
This commit is contained in:
		
							parent
							
								
									14e887ec39
								
							
						
					
					
						commit
						4250fa9223
					
				@ -214,9 +214,8 @@ class EmotesSettingsController extends State<EmotesSettings> {
 | 
			
		||||
    }
 | 
			
		||||
    final uploadResp = await showFutureLoadingDialog(
 | 
			
		||||
      context: context,
 | 
			
		||||
      future: () => Matrix.of(context)
 | 
			
		||||
          .client
 | 
			
		||||
          .uploadContent(file.bytes, filename: file.name),
 | 
			
		||||
      future: () => Matrix.of(context).client.uploadContent(file.bytes,
 | 
			
		||||
          filename: file.name, contentType: file.mimeType),
 | 
			
		||||
    );
 | 
			
		||||
    if (uploadResp.error == null) {
 | 
			
		||||
      setState(() {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user