mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 12:14:11 +00:00 
			
		
		
		
	Enforce thumbnail width for videos
This commit is contained in:
		@@ -240,7 +240,10 @@ class _ConversationScreenState extends SafeState<ConversationScreen> {
 | 
				
			|||||||
      BytesFile thumbnail;
 | 
					      BytesFile thumbnail;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      if (isVideo(lookupMimeType(file.filename)))
 | 
					      if (isVideo(lookupMimeType(file.filename)))
 | 
				
			||||||
        thumbnail = await generateVideoThumbnail(videoFile: file);
 | 
					        thumbnail = await generateVideoThumbnail(
 | 
				
			||||||
 | 
					          videoFile: file,
 | 
				
			||||||
 | 
					          maxWidth: srvConfig.conversationsPolicy.maxThumbnailWidth,
 | 
				
			||||||
 | 
					        );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      await _submitMessage(
 | 
					      await _submitMessage(
 | 
				
			||||||
        NewConversationMessage(
 | 
					        NewConversationMessage(
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user