Pass the room object into displayNotification

It needs it to do the view_room if the notification is clicked.
This commit is contained in:
David Baker 2016-12-06 13:27:36 +00:00
parent c0b931a837
commit 28e663dd48
2 changed files with 2 additions and 2 deletions

View file

@ -63,7 +63,7 @@ export default class BasePlatform {
requestNotificationPermission() : Promise<string> { requestNotificationPermission() : Promise<string> {
} }
displayNotification(title: string, msg: string, avatarUrl: string) { displayNotification(title: string, msg: string, avatarUrl: string, room: Object) {
} }
/** /**

View file

@ -73,7 +73,7 @@ var Notifier = {
ev.sender, 40, 40, 'crop' ev.sender, 40, 40, 'crop'
) : null; ) : null;
const notif = plaf.displayNotification(title, msg, avatarUrl); const notif = plaf.displayNotification(title, msg, avatarUrl, room);
// if displayNotification returns non-null, the platform supports // if displayNotification returns non-null, the platform supports
// clearing notifications later, so keep track of this. // clearing notifications later, so keep track of this.