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

Commits on Sep 27, 2021

  1. Fix getTurnServer response: integer ttl

    `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>
    lukaslihotzki committed Sep 27, 2021
    Configuration menu
    Copy the full SHA
    9802de2 View commit details
    Browse the repository at this point in the history