From 028bb19080e012f2cd6d485d0d816fa8bf0dcd15 Mon Sep 17 00:00:00 2001 From: Jack Matthews Date: Fri, 26 May 2023 04:33:54 -0400 Subject: [PATCH] [Metro > Common] Fix constants find Discord renamed API_HOST to APP_URL_PREFIX in iOS build 44564, breaking our constants find. Instead, we should use Fonts and Permissions because those shouldn't ever be removed from constants.. right? --- src/lib/metro/common.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/metro/common.ts b/src/lib/metro/common.ts index 689a8de..80bad8a 100644 --- a/src/lib/metro/common.ts +++ b/src/lib/metro/common.ts @@ -2,7 +2,7 @@ import { DiscordStyleSheet } from "@types"; import { find, findByProps } from "@metro/filters"; // Discord -export const constants = findByProps("API_HOST"); +export const constants = findByProps("Fonts", "Permissions"); export const channels = findByProps("getVoiceChannelId"); export const i18n = findByProps("Messages"); export const url = findByProps("openURL", "openDeeplink");