Merge pull request #2653 from krille-chan/krille/remove-web-notification-sound
chore: Remove web notification custom sound
This commit is contained in:
commit
d69b42e1c5
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