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

Unified Diff: messageResponder.js

Issue 29570584: Issue 5847 - Add prefs.set message handler (Closed)
Patch Set: Created Oct. 9, 2017, 2:30 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 47f4b05a9d88c8969531c2aac61c2d9ea0270cc0..da0711f1aa1d1f9dc8032f6abf76a3fa3699a2b8 100644
--- a/messageResponder.js
+++ b/messageResponder.js
@@ -338,7 +338,7 @@
port.on("prefs.toggle", (message, sender) =>
{
if (message.key == "notifications_ignoredcategories")
- return NotificationStorage.toggleIgnoreCategory("*");
+ return NotificationStorage.toggleIgnoreCategory("*", message.forceValue);
return Prefs[message.key] = !Prefs[message.key];
});
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld