summary refs log tree commit diff
path: root/synapse/rest
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-05-05 12:55:02 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-05-05 12:55:02 +0300
commit88868b283994b9a73634d7153fd7104257475349 (patch)
treead456efcce7579e7825e1a54a4ebe0ae678d7e90 /synapse/rest
parentMerge pull request #3007 from matrix-org/rav/warn_on_logcontext_fail (diff)
downloadsynapse-88868b283994b9a73634d7153fd7104257475349.tar.xz
notifications: Convert next_token to string according to the spec
Currently the parameter is serialized as an integer.

Signed-off-by: Konstantinos Sideris <sideris.konstantin@gmail.com>
Diffstat (limited to 'synapse/rest')
-rw-r--r--synapse/rest/client/v2_alpha/notifications.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/notifications.py b/synapse/rest/client/v2_alpha/notifications.py
index ec170109fe..66583d6778 100644
--- a/synapse/rest/client/v2_alpha/notifications.py
+++ b/synapse/rest/client/v2_alpha/notifications.py
@@ -88,7 +88,7 @@ class NotificationsServlet(RestServlet):
                     pa["topological_ordering"], pa["stream_ordering"]
                 )
             returned_push_actions.append(returned_pa)
-            next_token = pa["stream_ordering"]
+            next_token = str(pa["stream_ordering"])
 
         defer.returnValue((200, {
             "notifications": returned_push_actions,