From 58d5de4aba0791b2b801b2ff5e5d4e0bacc5914a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ku=C3=9Fowski?= Date: Thu, 5 Mar 2026 13:12:53 +0100 Subject: [PATCH] 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. --- lib/widgets/local_notifications_extension.dart | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/widgets/local_notifications_extension.dart b/lib/widgets/local_notifications_extension.dart index ee5708a5e..618219dd8 100644 --- a/lib/widgets/local_notifications_extension.dart +++ b/lib/widgets/local_notifications_extension.dart @@ -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 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,