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:
parent
e311c9573e
commit
58d5de4aba
1 changed files with 0 additions and 6 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue