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

Commit 004b420

Browse files
authored
Merge pull request #582 from matrix-org/dbkr/fix_notification_click
Pass the room object into displayNotification
2 parents c0b931a + 28e663d commit 004b420

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/BasePlatform.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default class BasePlatform {
6363
requestNotificationPermission() : Promise<string> {
6464
}
6565

66-
displayNotification(title: string, msg: string, avatarUrl: string) {
66+
displayNotification(title: string, msg: string, avatarUrl: string, room: Object) {
6767
}
6868

6969
/**

src/Notifier.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ var Notifier = {
7373
ev.sender, 40, 40, 'crop'
7474
) : null;
7575

76-
const notif = plaf.displayNotification(title, msg, avatarUrl);
76+
const notif = plaf.displayNotification(title, msg, avatarUrl, room);
7777

7878
// if displayNotification returns non-null, the platform supports
7979
// clearing notifications later, so keep track of this.

0 commit comments

Comments
 (0)