1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-10-22 22:43: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;
if (isVideo(lookupMimeType(file.filename)))
thumbnail = await generateVideoThumbnail(videoFile: file);
thumbnail = await generateVideoThumbnail(
videoFile: file,
maxWidth: srvConfig.conversationsPolicy.maxThumbnailWidth,
);
await _submitMessage(
NewConversationMessage(