Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: messageResponder.js

Issue 29730608: Issue 6512 - Add notifications.clicked listener (Closed)
Patch Set: Created March 22, 2018, 2:42 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: messageResponder.js
diff --git a/messageResponder.js b/messageResponder.js
index 04230bed338cc8b12419f7dd87165ba7ae0b3869..368a65ca6ac744e039434128ec4b0f8bbc09c545 100644
--- a/messageResponder.js
+++ b/messageResponder.js
@@ -28,7 +28,8 @@
const {FilterNotifier} = require("filterNotifier");
const {defaultMatcher} = require("matcher");
const {Notification: NotificationStorage} = require("notification");
- const {getActiveNotification, shouldDisplay} = require("notificationHelper");
+ const {getActiveNotification, shouldDisplay,
+ notificationClicked} = require("notificationHelper");
const {
Filter, ActiveFilter, BlockingFilter, RegExpFilter
@@ -374,6 +375,11 @@
return Object.assign({texts}, notification);
});
+ port.on("notifications.clicked", (message, sender) =>
+ {
+ notificationClicked();
+ });
+
port.on("subscriptions.add", (message, sender) =>
{
let subscription = Subscription.fromURL(message.url);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld