Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit a33b60d

Browse files
authored
Merge pull request #985 from matrix-org/t3chguy/electron_flash
add concept of platform handling loudNotifications (bings/pings/whatHaveYou)
2 parents 92143f2 + 8cfa3bc commit a33b60d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/BasePlatform.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ export default class BasePlatform {
7171
displayNotification(title: string, msg: string, avatarUrl: string, room: Object) {
7272
}
7373

74+
loudNotification(ev: Event, room: Object) {
75+
}
76+
7477
/**
7578
* Returns a promise that resolves to a string representing
7679
* the current version of the application.

src/Notifier.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ const Notifier = {
250250
this._displayPopupNotification(ev, room);
251251
}
252252
if (actions.tweaks.sound && this.isAudioEnabled()) {
253+
PlatformPeg.get().loudNotification(ev, room);
253254
this._playAudioNotification(ev, room);
254255
}
255256
}

0 commit comments

Comments
 (0)