From 1cc7c5dc2de01e06382c61638896b1fc8867271f Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Thu, 19 Aug 2021 11:41:24 -0700 Subject: [PATCH] Move `getAlwaysRelayCalls` to `window.Events` --- ts/services/calling.ts | 2 +- ts/window.d.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ts/services/calling.ts b/ts/services/calling.ts index 043615135467..cd851ee3f243 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 81f3e7da122a..dce2a49b5f3b 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;