summary refs log tree commit diff
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2018-05-08 13:54:47 +0100
committerGitHub <noreply@github.com>2018-05-08 13:54:47 +0100
commit678e649b78475be9428d558d6978fa0fce425a45 (patch)
tree42d077745383e4fb5b5e7c97bf80f10004500060
parentMerge pull request #3186 from matrix-org/erikj/fix_int_values_metrics (diff)
parentnotifications: Convert next_token to string according to the spec (diff)
downloadsynapse-678e649b78475be9428d558d6978fa0fce425a45.tar.xz
Merge pull request #3190 from mujx/notif-token-fix
notifications: Convert next_token to string according to the spec
-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,