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:
parent
b84eba59e3
commit
6fc1a263d2
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user