mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 21:24:59 +08:00
Merge pull request #582 from matrix-org/dbkr/fix_notification_click
Pass the room object into displayNotification
This commit is contained in:
commit
004b420eaa
@ -63,7 +63,7 @@ export default class BasePlatform {
|
||||
requestNotificationPermission() : Promise<string> {
|
||||
}
|
||||
|
||||
displayNotification(title: string, msg: string, avatarUrl: string) {
|
||||
displayNotification(title: string, msg: string, avatarUrl: string, room: Object) {
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -73,7 +73,7 @@ var Notifier = {
|
||||
ev.sender, 40, 40, 'crop'
|
||||
) : null;
|
||||
|
||||
const notif = plaf.displayNotification(title, msg, avatarUrl);
|
||||
const notif = plaf.displayNotification(title, msg, avatarUrl, room);
|
||||
|
||||
// if displayNotification returns non-null, the platform supports
|
||||
// clearing notifications later, so keep track of this.
|
||||
|
Loading…
Reference in New Issue
Block a user