chore: Remove web notification custom sound

Sound is now played on macOS
and Windows by default.
On some Linux distro it may
differ but there it should be
possible to configure it.
This commit is contained in:
Christian Kußowski 2026-03-05 13:12:53 +01:00
parent e311c9573e
commit 58d5de4aba
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652

View file

@ -18,10 +18,6 @@ import 'package:fluffychat/widgets/fluffy_chat_app.dart';
import 'package:fluffychat/widgets/matrix.dart';
extension LocalNotificationsExtension on MatrixState {
static final html.AudioElement _audioPlayer = html.AudioElement()
..src = 'assets/assets/sounds/notification.ogg'
..load();
Future<void> showLocalNotification(Event event) async {
final roomId = event.room.id;
if (activeRoomId == roomId) {
@ -74,8 +70,6 @@ extension LocalNotificationsExtension on MatrixState {
);
}
_audioPlayer.play();
html.Notification(
title,
body: body,