synapse-product/synapse/rest/client
Lukas Lihotzki 145cb6d08e
Fix getTurnServer response: return an integer ttl (#10922)
`ttl` must be an integer according to the OpenAPI spec:
https://github.com/matrix-org/matrix-doc/blob/old_master/data/api/client-server/voip.yaml#L70

True division (`/`) returns a float instead (`"ttl": 7200.0`).
Floor division (`//`) returns an integer, so the response is spec compliant.

Signed-off-by: Lukas Lihotzki <lukas@lihotzki.de>
2021-09-30 08:04:55 -04:00
..
__init__.py Flatten the synapse.rest.client package (#10600) 2021-08-17 11:57:58 +00:00
_base.py Additional type hints for client REST servlets (part 5) (#10736) 2021-09-03 09:22:22 -04:00
account_data.py Additional type hints for the client REST servlets (part 3). (#10707) 2021-08-31 17:22:29 +00:00
account_validity.py Addtional type hints for the REST servlets. (#10665) 2021-08-23 08:14:17 -04:00
account.py Use direct references for configuration variables (part 6). (#10916) 2021-09-29 06:44:15 -04:00
auth.py Use direct references for some configuration variables (part 3) (#10885) 2021-09-23 07:13:34 -04:00
capabilities.py Use direct references for configuration variables (part 6). (#10916) 2021-09-29 06:44:15 -04:00
devices.py Remove unnecessary parentheses around tuples returned from methods (#10889) 2021-09-23 11:59:07 +01:00
directory.py Addtional type hints for the REST servlets. (#10665) 2021-08-23 08:14:17 -04:00
events.py Additional type hints for REST servlets (part 2). (#10674) 2021-08-26 11:53:52 +00:00
filter.py Use direct references for configuration variables (part 6). (#10916) 2021-09-29 06:44:15 -04:00
groups.py Additional type hints for client REST servlets (part 5) (#10736) 2021-09-03 09:22:22 -04:00
initial_sync.py Additional type hints for REST servlets (part 2). (#10674) 2021-08-26 11:53:52 +00:00
keys.py Additional type hints for REST servlets (part 2). (#10674) 2021-08-26 11:53:52 +00:00
knock.py Additional type hints for client REST servlets (part 4) (#10728) 2021-09-01 11:59:32 -04:00
login.py Use direct references for configuration variables (part 5). (#10897) 2021-09-24 07:25:21 -04:00
logout.py Additional type hints for REST servlets (part 2). (#10674) 2021-08-26 11:53:52 +00:00
notifications.py Additional type hints for REST servlets (part 2). (#10674) 2021-08-26 11:53:52 +00:00
openid.py Use direct references for some configuration variables (#10798) 2021-09-13 13:07:12 -04:00
password_policy.py Use direct references for some configuration variables (part 3) (#10885) 2021-09-23 07:13:34 -04:00
presence.py Additional type hints for REST servlets (part 2). (#10674) 2021-08-26 11:53:52 +00:00
profile.py Use direct references for configuration variables (part 6). (#10916) 2021-09-29 06:44:15 -04:00
push_rule.py Use direct references for some configuration variables (#10798) 2021-09-13 13:07:12 -04:00
pusher.py Addtional type hints for the REST servlets. (#10665) 2021-08-23 08:14:17 -04:00
read_marker.py Addtional type hints for the REST servlets. (#10665) 2021-08-23 08:14:17 -04:00
receipts.py Additional type hints for the client REST servlets (part 3). (#10707) 2021-08-31 17:22:29 +00:00
register.py Use direct references for configuration variables (part 6). (#10916) 2021-09-29 06:44:15 -04:00
relations.py Additional type hints for the client REST servlets (part 3). (#10707) 2021-08-31 17:22:29 +00:00
report_event.py Additional type hints for client REST servlets (part 4) (#10728) 2021-09-01 11:59:32 -04:00
room_batch.py Ensure (room_id, next_batch_id) is unique to avoid cross-talk/conflicts between batches (MSC2716) (#10877) 2021-09-28 21:23:16 -05:00
room_keys.py Additional type hints for client REST servlets (part 4) (#10728) 2021-09-01 11:59:32 -04:00
room_upgrade_rest_servlet.py Addtional type hints for the REST servlets. (#10665) 2021-08-23 08:14:17 -04:00
room.py Use direct references for configuration variables (part 6). (#10916) 2021-09-29 06:44:15 -04:00
sendtodevice.py Additional type hints for client REST servlets (part 4) (#10728) 2021-09-01 11:59:32 -04:00
shared_rooms.py Use direct references for configuration variables (part 6). (#10916) 2021-09-29 06:44:15 -04:00
sync.py Use direct references for configuration variables (part 6). (#10916) 2021-09-29 06:44:15 -04:00
tags.py Addtional type hints for the REST servlets. (#10665) 2021-08-23 08:14:17 -04:00
thirdparty.py Addtional type hints for the REST servlets. (#10665) 2021-08-23 08:14:17 -04:00
tokenrefresh.py Addtional type hints for the REST servlets. (#10665) 2021-08-23 08:14:17 -04:00
transactions.py Additional type hints for client REST servlets (part 5) (#10736) 2021-09-03 09:22:22 -04:00
user_directory.py Use direct references for configuration variables (part 5). (#10897) 2021-09-24 07:25:21 -04:00
versions.py Use direct references for configuration variables (part 5). (#10897) 2021-09-24 07:25:21 -04:00
voip.py Fix getTurnServer response: return an integer ttl (#10922) 2021-09-30 08:04:55 -04:00