mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-23 02:31:39 +01:00
fix plurals
This commit is contained in:
parent
af2098327b
commit
eab87e5157
@ -561,14 +561,14 @@ export class Session {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async _updateTurnServers() {
|
async _updateTurnServers() {
|
||||||
const turnServersData = await this._hsApi.getTurnServers().response();
|
const turnServerData = await this._hsApi.getTurnServer().response();
|
||||||
this._callHandler.setTurnServers({
|
this._callHandler.setTurnServers({
|
||||||
urls: turnServerData.uris,
|
urls: turnServerData.uris,
|
||||||
username: turnServerData.username,
|
username: turnServerData.username,
|
||||||
credential: turnServerData.password,
|
credential: turnServerData.password,
|
||||||
});
|
});
|
||||||
if (turnServersData.ttl > 0) {
|
if (turnServerData.ttl > 0) {
|
||||||
setTimeout(this._updateTurnServers, turnServersData.ttl * 1000);
|
setTimeout(this._updateTurnServers, turnServerData.ttl * 1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user