feat: Enable audioplayer for web and linux

This commit is contained in:
Christian Pauly 2023-02-14 09:15:47 +01:00
commit c24295580b
2 changed files with 26 additions and 17 deletions

View file

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