From 60c2188780b97b63826bdf289667a9170a0c8bb2 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Mon, 4 Nov 2024 09:17:06 -0300 Subject: [PATCH] KeepCurrentChannel: Fix when switching accounts --- src/plugins/keepCurrentChannel/index.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/plugins/keepCurrentChannel/index.ts b/src/plugins/keepCurrentChannel/index.ts index 1e0e742dc8..7747210be9 100644 --- a/src/plugins/keepCurrentChannel/index.ts +++ b/src/plugins/keepCurrentChannel/index.ts @@ -45,6 +45,16 @@ export default definePlugin({ description: "Attempt to navigate to the channel you were in before switching accounts or loading Discord.", authors: [Devs.Nuckyz], + patches: [ + { + find: '"Switching accounts"', + replacement: { + match: /goHomeAfterSwitching:\i/, + replace: "goHomeAfterSwitching:!1" + } + } + ], + flux: { LOGOUT(e: LogoutEvent) { ({ isSwitchingAccount } = e);