chore: Disable audio player on linux

This commit is contained in:
Krille Fear 2022-12-30 12:36:20 +01:00
parent ca203608fa
commit d3e3252de8

View File

@ -112,9 +112,12 @@ class MessageContent extends StatelessWidget {
case CuteEventContent.eventType: case CuteEventContent.eventType:
return CuteContent(event); return CuteContent(event);
case MessageTypes.Audio: case MessageTypes.Audio:
if (PlatformInfos.isMobile || if (PlatformInfos.isMobile || PlatformInfos.isMacOS
PlatformInfos.isMacOS || // || latformInfos.isLinux
PlatformInfos.isLinux) { // disabled until
// https://github.com/bleonard252/just_audio_mpv/issues/3 is
// fixed
) {
return AudioPlayerWidget( return AudioPlayerWidget(
event, event,
color: textColor, color: textColor,