Skip to content

Commit

Permalink
KeepCurrentChannel: Fix when switching accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuckyz committed Nov 4, 2024
1 parent b2dc81d commit 60c2188
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/plugins/keepCurrentChannel/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 60c2188

Please sign in to comment.