mirror of
				https://github.com/cinnyapp/cinny.git
				synced 2025-11-04 14:30:29 +03:00 
			
		
		
		
	fix(thumbnail): doesn't work
This commit is contained in:
		
							parent
							
								
									0a659e174c
								
							
						
					
					
						commit
						3dc08abfed
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -94,7 +94,7 @@ export const ImageContent = as<'div', ImageContentProps>(
 | 
			
		|||
 | 
			
		||||
    const [srcState, loadSrc] = useAsyncCallback(
 | 
			
		||||
      useCallback(async () => {
 | 
			
		||||
        const mediaUrl = (useThumbnail ? mxcUrlToHttp(mx, url, useAuthentication) : mxcUrlToHttp(mx, url, useAuthentication, imgWidth, imgHeight, resizeMethod)) ?? url;
 | 
			
		||||
        const mediaUrl = (useThumbnail ? mxcUrlToHttp(mx, url, useAuthentication, imgWidth, imgHeight, resizeMethod) : mxcUrlToHttp(mx, url, useAuthentication)) ?? url;
 | 
			
		||||
        if (encInfo) {
 | 
			
		||||
          const fileContent = await downloadEncryptedMedia(mediaUrl, (encBuf) =>
 | 
			
		||||
            decryptFile(encBuf, mimeType ?? FALLBACK_MIMETYPE, encInfo)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue