refactor: Switch to just audio for playing sounds

This commit is contained in:
Christian Pauly 2022-03-13 07:54:44 +01:00
commit 5eae299910
7 changed files with 74 additions and 72 deletions

View file

@ -80,7 +80,7 @@ class MessageContent extends StatelessWidget {
case MessageTypes.Sticker:
return Sticker(event);
case MessageTypes.Audio:
if (PlatformInfos.isMobile) {
if (PlatformInfos.isMobile || PlatformInfos.isDesktop) {
return AudioPlayerWidget(
event,
color: textColor,