From eab87e5157c795d255ae3760515b29ddd477aec8 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Mon, 26 Sep 2022 00:52:41 +0100 Subject: [PATCH] fix plurals --- src/matrix/Session.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/matrix/Session.js b/src/matrix/Session.js index de05f040..527c0e00 100644 --- a/src/matrix/Session.js +++ b/src/matrix/Session.js @@ -561,14 +561,14 @@ export class Session { } async _updateTurnServers() { - const turnServersData = await this._hsApi.getTurnServers().response(); + const turnServerData = await this._hsApi.getTurnServer().response(); this._callHandler.setTurnServers({ urls: turnServerData.uris, username: turnServerData.username, credential: turnServerData.password, }); - if (turnServersData.ttl > 0) { - setTimeout(this._updateTurnServers, turnServersData.ttl * 1000); + if (turnServerData.ttl > 0) { + setTimeout(this._updateTurnServers, turnServerData.ttl * 1000); } }