From 4bf00c1b74d043e3a7ffae76bb26ce52562a8cf2 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Thu, 16 Oct 2025 14:41:45 -0400 Subject: [PATCH] Fix Questify Crashing --- CONTRIBUTING.md | 4 ++-- src/equicordplugins/questify/index.tsx | 4 ++-- src/utils/discord.tsx | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 013841274..9bc1e9616 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ -# Contributing to Vencord +# Contributing to Equicord -Vencord is a community project and welcomes any kind of contribution from anyone! +Equicord is a community project and welcomes any kind of contribution from anyone! We have development documentation for new contributors, which can be found at . diff --git a/src/equicordplugins/questify/index.tsx b/src/equicordplugins/questify/index.tsx index 44c2f49f0..ae818fd4a 100644 --- a/src/equicordplugins/questify/index.tsx +++ b/src/equicordplugins/questify/index.tsx @@ -743,9 +743,9 @@ function getQuestAcceptedButtonText(quest: Quest): string | null { if (questEnrolledAt && ((playType && completeGameQuestsInBackground) || (watchType && completeVideoQuestsInBackground))) { if (!!intervalData) { - return getIntlMessage("QUESTS_VIDEO_WATCH_RESUME_WITH_TIME_CTA", { remainTime: progressFormatted })[0].replace(getIntlMessage("GAME_LIBRARY_UPDATES_ACTION_RESUME"), getIntlMessage(playType ? "USER_ACTIVITY_PLAYING" : "USER_ACTIVITY_WATCHING")); + return getIntlMessage("QUESTS_VIDEO_WATCH_RESUME_WITH_TIME_CTA", { remainTime: progressFormatted }, true)[0].replace(getIntlMessage("GAME_LIBRARY_UPDATES_ACTION_RESUME"), getIntlMessage(playType ? "USER_ACTIVITY_PLAYING" : "USER_ACTIVITY_WATCHING")); } else if (watchType || (playType && IS_DISCORD_DESKTOP)) { - return getIntlMessage("QUESTS_VIDEO_WATCH_RESUME_WITH_TIME_CTA", { remainTime: progressFormatted })[0]; + return getIntlMessage("QUESTS_VIDEO_WATCH_RESUME_WITH_TIME_CTA", { remainTime: progressFormatted }, true)[0]; } } diff --git a/src/utils/discord.tsx b/src/utils/discord.tsx index 1242e03cf..f2f254b47 100644 --- a/src/utils/discord.tsx +++ b/src/utils/discord.tsx @@ -34,7 +34,8 @@ const IntlManagerLogger = new Logger("IntlManager"); * @param key The plain message key * @param values The values to interpolate, if it's a rich message */ -export function getIntlMessage(key: string, values?: Record): any { +export function getIntlMessage(key: string, values?: Record, legacy?: boolean): any { + if (legacy) return getIntlMessageFromHash(runtimeHashMessageKeyLegacy(key), values, key); return getIntlMessageFromHash(runtimeHashMessageKey(key), values, key) || getIntlMessageFromHash(runtimeHashMessageKeyLegacy(key), values, key); }