Merge pull request #2653 from krille-chan/krille/remove-web-notification-sound

chore: Remove web notification custom sound
This commit is contained in:
Krille-chan 2026-03-05 13:53:40 +01:00 committed by GitHub
commit d69b42e1c5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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,