diff --git a/ts/services/calling.ts b/ts/services/calling.ts index 0436151354..cd851ee3f2 100644 --- a/ts/services/calling.ts +++ b/ts/services/calling.ts @@ -1823,7 +1823,7 @@ export class CallingClass { const iceServerJson = await window.textsecure.messaging.server.getIceServers(); - const shouldRelayCalls = Boolean(await window.getAlwaysRelayCalls()); + const shouldRelayCalls = window.Events.getAlwaysRelayCalls(); // If the peer is 'unknown', i.e. not in the contact list, force IP hiding. const isContactUnknown = !conversation.isFromOrAddedByTrustedContact(); diff --git a/ts/window.d.ts b/ts/window.d.ts index 81f3e7da12..dce2a49b5f 100644 --- a/ts/window.d.ts +++ b/ts/window.d.ts @@ -202,10 +202,8 @@ declare global { enterKeyboardMode: () => void; enterMouseMode: () => void; getAccountManager: () => AccountManager; - getAlwaysRelayCalls: () => Promise; getBuiltInImages: () => Promise>; getConversations: () => ConversationModelCollectionType; - getCountMutedConversations: () => Promise; getEnvironment: typeof getEnvironment; getExpiration: () => string; getGuid: () => string;