feat: Move videoplayer into multi image viewer

Also fixes video thumbnails

Signed-off-by: Christian Kußowski <c.kussowski@famedly.com>
This commit is contained in:
Christian Kußowski 2025-05-11 10:59:03 +02:00
commit 55705d761d
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
8 changed files with 292 additions and 175 deletions

View file

@ -96,7 +96,7 @@ class _MxcImageState extends State<MxcImage> {
final data = await event.downloadAndDecryptAttachment(
getThumbnail: widget.isThumbnail,
);
if (data.detectFileType is MatrixImageFile) {
if (data.detectFileType is MatrixImageFile || widget.isThumbnail) {
if (!mounted) return;
setState(() {
_imageData = data.bytes;