diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-05-05 12:55:02 +0300 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2018-05-05 12:55:02 +0300 |
commit | 88868b283994b9a73634d7153fd7104257475349 (patch) | |
tree | ad456efcce7579e7825e1a54a4ebe0ae678d7e90 | |
parent | Merge pull request #3007 from matrix-org/rav/warn_on_logcontext_fail (diff) | |
download | synapse-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>
-rw-r--r-- | synapse/rest/client/v2_alpha/notifications.py | 2 |
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, |