From 28e663dd48dde71a717a12dc61fc08e0c47ffc01 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 6 Dec 2016 13:27:36 +0000 Subject: [PATCH] Pass the room object into displayNotification It needs it to do the view_room if the notification is clicked. --- src/BasePlatform.js | 2 +- src/Notifier.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BasePlatform.js b/src/BasePlatform.js index 897a1a2dc8..b8c400c6e3 100644 --- a/src/BasePlatform.js +++ b/src/BasePlatform.js @@ -63,7 +63,7 @@ export default class BasePlatform { requestNotificationPermission() : Promise { } - displayNotification(title: string, msg: string, avatarUrl: string) { + displayNotification(title: string, msg: string, avatarUrl: string, room: Object) { } /** diff --git a/src/Notifier.js b/src/Notifier.js index b9260a046d..a58fc0132f 100644 --- a/src/Notifier.js +++ b/src/Notifier.js @@ -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.