mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-02-08 18:48:18 +01:00
fix typo
This commit is contained in:
parent
e6bf49a6cc
commit
05c2da95c4
@ -24,7 +24,7 @@ import type {Clock, Timeout} from "../../platform/web/dom/Clock";
|
|||||||
import type {ILogItem} from "../../logging/types";
|
import type {ILogItem} from "../../logging/types";
|
||||||
|
|
||||||
type TurnServerSettings = {
|
type TurnServerSettings = {
|
||||||
urls: string[],
|
uris: string[],
|
||||||
username: string,
|
username: string,
|
||||||
password: string,
|
password: string,
|
||||||
ttl: number
|
ttl: number
|
||||||
@ -54,6 +54,7 @@ export class TurnServerSource {
|
|||||||
if (!this.isPolling) {
|
if (!this.isPolling) {
|
||||||
const settings = await this.doRequest(log);
|
const settings = await this.doRequest(log);
|
||||||
const iceServer = settings ? toIceServer(settings) : this.defaultSettings;
|
const iceServer = settings ? toIceServer(settings) : this.defaultSettings;
|
||||||
|
log.set("iceServer", iceServer);
|
||||||
if (this.currentObservable) {
|
if (this.currentObservable) {
|
||||||
this.currentObservable.set(iceServer);
|
this.currentObservable.set(iceServer);
|
||||||
} else {
|
} else {
|
||||||
@ -149,7 +150,7 @@ function shouldUpdate(observable: BaseObservableValue<RTCIceServer | undefined>,
|
|||||||
|
|
||||||
function toIceServer(settings: TurnServerSettings): RTCIceServer {
|
function toIceServer(settings: TurnServerSettings): RTCIceServer {
|
||||||
return {
|
return {
|
||||||
urls: settings.urls,
|
urls: settings.uris,
|
||||||
username: settings.username,
|
username: settings.username,
|
||||||
credential: settings.password,
|
credential: settings.password,
|
||||||
credentialType: "password"
|
credentialType: "password"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user