summary refs log tree commit diff
path: root/synapse/rest/client/v2_alpha
diff options
context:
space:
mode:
authorDavid Baker <dave@matrix.org>2016-09-08 13:43:35 +0100
committerDavid Baker <dave@matrix.org>2016-09-08 13:43:35 +0100
commit4ef222ab6142942eb76d4e0cdea57c1114b0c28a (patch)
tree58b8b8493c712686d1bc00a4f0541f2ee7c09ec4 /synapse/rest/client/v2_alpha
parentLog delta files we're applying (diff)
downloadsynapse-4ef222ab6142942eb76d4e0cdea57c1114b0c28a.tar.xz
Implement `only=highlight` on `/notifications`
Diffstat (limited to 'synapse/rest/client/v2_alpha')
-rw-r--r--synapse/rest/client/v2_alpha/notifications.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/notifications.py b/synapse/rest/client/v2_alpha/notifications.py
index f1a48acf07..fd2a3d69d4 100644
--- a/synapse/rest/client/v2_alpha/notifications.py
+++ b/synapse/rest/client/v2_alpha/notifications.py
@@ -45,11 +45,12 @@ class NotificationsServlet(RestServlet):
 
         from_token = parse_string(request, "from", required=False)
         limit = parse_integer(request, "limit", default=50)
+        only = parse_string(request, "only", required=False)
 
         limit = min(limit, 500)
 
         push_actions = yield self.store.get_push_actions_for_user(
-            user_id, from_token, limit
+            user_id, from_token, limit, only_highlight=(only == "highlight")
         )
 
         receipts_by_room = yield self.store.get_receipts_for_user_with_orderings(