mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 12:59:21 +00:00
Enforce thumbnail width for videos
This commit is contained in:
parent
b84eba59e3
commit
6fc1a263d2
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user