Merge branch 'rizzek/fix-missing-video-bubble-issue698' into 'main'

Show message bubble on download only video attachments

Closes #698

See merge request famedly/fluffychat!611
This commit is contained in:
Krille Fear 2021-12-12 10:57:37 +00:00
commit 312aa1918f

View File

@ -4,6 +4,7 @@ import 'package:matrix/matrix.dart';
import 'package:fluffychat/config/themes.dart';
import 'package:fluffychat/utils/date_time_extension.dart';
import 'package:fluffychat/utils/matrix_sdk_extensions.dart/event_extension.dart';
import 'package:fluffychat/utils/platform_infos.dart';
import 'package:fluffychat/utils/string_color.dart';
import 'package:fluffychat/widgets/avatar.dart';
@ -96,7 +97,8 @@ class Message extends StatelessWidget {
MessageTypes.Sticker,
}.contains(event.messageType) &&
!(event.messageType == MessageTypes.Video &&
!(PlatformInfos.isMobile || PlatformInfos.isWeb));
!((PlatformInfos.isMobile && event.showThumbnail) ||
PlatformInfos.isWeb));
if (ownMessage) {
color = displayEvent.status.isError