mirror of
https://github.com/Vencord/Vesktop.git
synced 2025-02-23 13:45:09 +00:00
Update index.ts
This commit is contained in:
parent
322e3fd52b
commit
c9704f2962
1 changed files with 0 additions and 13 deletions
|
@ -32,20 +32,7 @@ customSettingsSections.push(() => ({
|
|||
className: "vc-vesktop-settings"
|
||||
}));
|
||||
|
||||
const arRPC = Vencord.Plugins.plugins["WebRichPresence (arRPC)"] as any as {
|
||||
handleEvent(e: MessageEvent): void;
|
||||
};
|
||||
|
||||
VesktopNative.arrpc.onActivity(async data => {
|
||||
if (!Settings.store.arRPC) return;
|
||||
|
||||
await onceReady;
|
||||
|
||||
arRPC.handleEvent(new MessageEvent("message", { data }));
|
||||
});
|
||||
|
||||
const VoiceActions = findByPropsLazy("toggleSelfMute");
|
||||
|
||||
VesktopNative.voice.onToggleSelfMute(() => VoiceActions.toggleSelfMute());
|
||||
|
||||
VesktopNative.voice.onToggleSelfDeaf(() => VoiceActions.toggleSelfDeaf());
|
||||
|
|
Loading…
Add table
Reference in a new issue