Better types for WebAPI
This commit is contained in:
parent
c05d23e628
commit
b9d6497cb1
22 changed files with 156 additions and 107 deletions
|
@ -1902,7 +1902,7 @@ export class CallingClass {
|
|||
throw new Error('getCallSettings: offline!');
|
||||
}
|
||||
|
||||
const iceServerJson = await window.textsecure.messaging.server.getIceServers();
|
||||
const iceServer = await window.textsecure.messaging.server.getIceServers();
|
||||
|
||||
const shouldRelayCalls = window.Events.getAlwaysRelayCalls();
|
||||
|
||||
|
@ -1910,7 +1910,7 @@ export class CallingClass {
|
|||
const isContactUnknown = !conversation.isFromOrAddedByTrustedContact();
|
||||
|
||||
return {
|
||||
iceServer: JSON.parse(iceServerJson),
|
||||
iceServer,
|
||||
hideIp: shouldRelayCalls || isContactUnknown,
|
||||
bandwidthMode: BandwidthMode.Normal,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue