mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 22:14:58 +08:00
Merge pull request #985 from matrix-org/t3chguy/electron_flash
add concept of platform handling loudNotifications (bings/pings/whatHaveYou)
This commit is contained in:
commit
a33b60d3a1
@ -71,6 +71,9 @@ export default class BasePlatform {
|
||||
displayNotification(title: string, msg: string, avatarUrl: string, room: Object) {
|
||||
}
|
||||
|
||||
loudNotification(ev: Event, room: Object) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a promise that resolves to a string representing
|
||||
* the current version of the application.
|
||||
|
@ -250,6 +250,7 @@ const Notifier = {
|
||||
this._displayPopupNotification(ev, room);
|
||||
}
|
||||
if (actions.tweaks.sound && this.isAudioEnabled()) {
|
||||
PlatformPeg.get().loudNotification(ev, room);
|
||||
this._playAudioNotification(ev, room);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user