Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fix getTurnServer response: integer ttl #10922

Merged
merged 1 commit into from
Sep 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/10922.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix a minor bug in the response to `/_matrix/client/r0/voip/turnServer`. Contributed by @lukaslihotzki.
2 changes: 1 addition & 1 deletion synapse/rest/client/voip.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async def on_GET(self, request: SynapseRequest) -> Tuple[int, JsonDict]:
{
"username": username,
"password": password,
"ttl": userLifetime / 1000,
"ttl": userLifetime // 1000,
"uris": turnUris,
},
)
Expand Down