From 549923ed16b6b6fa65bafb7071b6d4b5112dcba4 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Wed, 19 Feb 2025 17:06:09 -0500 Subject: [PATCH] Add Vencord.Api.isEquicord --- src/api/index.ts | 5 +++++ src/plugins/voiceMessages/index.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/api/index.ts b/src/api/index.ts index d4d7b461..f0538f52 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -122,3 +122,8 @@ export const MessageUpdater = $MessageUpdater; * An API allowing you to get an user setting */ export const UserSettings = $UserSettings; + +/** + * Just used to identify if user is on Equicord as Vencord doesnt have this + */ +export const isEquicord = true; diff --git a/src/plugins/voiceMessages/index.tsx b/src/plugins/voiceMessages/index.tsx index 3f4862d8..35522301 100644 --- a/src/plugins/voiceMessages/index.tsx +++ b/src/plugins/voiceMessages/index.tsx @@ -30,8 +30,8 @@ import { chooseFile } from "@utils/web"; import { findByPropsLazy, findLazy, findStoreLazy } from "@webpack"; import { Button, Card, Constants, FluxDispatcher, Forms, lodash, Menu, MessageActions, PermissionsBits, PermissionStore, RestAPI, SelectedChannelStore, showToast, SnowflakeUtils, Toasts, useEffect, useState } from "@webpack/common"; import { ComponentType } from "react"; -import { lastState as silentMessageEnabled } from "../silentMessageToggle"; +import { lastState as silentMessageEnabled } from "../silentMessageToggle"; import { VoiceRecorderDesktop } from "./DesktopRecorder"; import { settings } from "./settings"; import { cl } from "./utils";