1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-26 06:49:22 +00:00

Enforce thumbnail width for videos

This commit is contained in:
Pierre HUBERT 2021-03-12 19:37:13 +01:00
parent b84eba59e3
commit 6fc1a263d2

View File

@ -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(