diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a97c567..8a3034c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -19,6 +19,9 @@ importers: electron-updater: specifier: ^6.3.9 version: 6.3.9 + venbind: + specifier: ^0.0.3 + version: 0.0.3 optionalDependencies: '@vencord/venmic': specifier: ^6.1.0 @@ -2877,6 +2880,11 @@ packages: util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} + venbind@0.0.3: + resolution: {integrity: sha512-irlmr5Qeo9pSejGF5nATwzn5ramkEuJzjDMExrPA0p1DrNfFpUqyDsA05edUfHB2R4S9iyuILZG9zDQVKB3O3w==} + cpu: [x64] + os: [linux, win32] + verror@1.10.1: resolution: {integrity: sha512-veufcmxri4e3XSrT0xwfUR7kguIkaxBeosDg00yDWhk49wdwkSUrvvsm7nc75e1PUyvIeZj6nS8VQRYz2/S4Xg==} engines: {node: '>=0.6.0'} @@ -6159,6 +6167,8 @@ snapshots: util-deprecate@1.0.2: {} + venbind@0.0.3: {} + verror@1.10.1: dependencies: assert-plus: 1.0.0 diff --git a/src/renderer/index.ts b/src/renderer/index.ts index a00cd08..ca8aa82 100644 --- a/src/renderer/index.ts +++ b/src/renderer/index.ts @@ -18,9 +18,6 @@ import { VesktopLogger } from "./logger"; import { Settings } from "./settings"; export { Settings }; - -const InviteActions = findByPropsLazy("resolveInvite"); - export const keybindCallbacks: { [id: number]: { onTrigger: Function; @@ -31,22 +28,6 @@ export const keybindCallbacks: { }; } = {}; -export async function openInviteModal(code: string) { - const { invite } = await InviteActions.resolveInvite(code, "Desktop Modal"); - if (!invite) return false; - - VesktopNative.win.focus(); - - FluxDispatcher.dispatch({ - type: "INVITE_MODAL_OPEN", - invite, - code, - context: "APP" - }); - - return true; -} - VesktopLogger.log("read if cute :3"); VesktopLogger.log("Vesktop v" + VesktopNative.app.getVersion());