Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Plugin): NoJoinOnClick #3142

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
moved patch to vcDoubleClick
Moritzoni committed Jan 15, 2025

Verified

This commit was signed with the committer’s verified signature.
Moritzoni Moritz
commit fc5ed8bab0e85c20c6dcec6587091e56db3d63b1
3 changes: 0 additions & 3 deletions src/plugins/noJoinOnClick/README.md

This file was deleted.

24 changes: 0 additions & 24 deletions src/plugins/noJoinOnClick/index.ts

This file was deleted.

13 changes: 12 additions & 1 deletion src/plugins/vcDoubleClick/index.ts
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ const timers = {} as Record<string, {
export default definePlugin({
name: "VoiceChatDoubleClick",
description: "Join voice chats via double click instead of single click",
authors: [Devs.Ven, Devs.D3SOX],
authors: [Devs.Ven, Devs.D3SOX, Devs.Moritzoni],
patches: [
...[
".handleVoiceStatusClick", // voice channels
@@ -54,6 +54,17 @@ export default definePlugin({
replace: (_, onClick, props) => ""
+ `onClick:(vcDoubleClickEvt)=>$self.shouldRunOnClick(vcDoubleClickEvt,${props})&&${onClick}()`,
}
},
{
// active now voice and stream
find: "VoiceSection",
all: true,
replacement: [
{
match: "selectVoiceChannel",
replace: "selectChannel",
}
]
}
],