diff --git a/src/equicordplugins/sidebarChat/store.ts b/src/equicordplugins/sidebarChat/store.ts index 85b699f06..d1cfe32f7 100644 --- a/src/equicordplugins/sidebarChat/store.ts +++ b/src/equicordplugins/sidebarChat/store.ts @@ -9,7 +9,7 @@ import { proxyLazy } from "@utils/lazy"; import { OptionType } from "@utils/types"; import { FluxEmitter, FluxStore } from "@vencord/discord-types"; import { findByPropsLazy } from "@webpack"; -import { ChannelStore, FluxDispatcher, GuildStore, PrivateChannelsStore } from "@webpack/common"; +import { ChannelActionCreators, ChannelStore, FluxDispatcher, GuildStore } from "@webpack/common"; interface IFlux { PersistedStore: typeof FluxStore; @@ -73,7 +73,7 @@ export const SidebarStore = proxyLazy(() => { return; } - channelId = await PrivateChannelsStore.getOrEnsurePrivateChannel(id); + channelId = await ChannelActionCreators.getOrEnsurePrivateChannel(id); store.emitChange(); }, diff --git a/src/plugins/_core/settings.tsx b/src/plugins/_core/settings.tsx index 7c525b5fd..b52ebff08 100644 --- a/src/plugins/_core/settings.tsx +++ b/src/plugins/_core/settings.tsx @@ -227,10 +227,10 @@ export default definePlugin({ let version = ""; if (IS_DEV) version = "Dev"; - else if (IS_WEB) version = "Web"; - else if (IS_VESKTOP) version = `Vesktop v${VesktopNative.app.getVersion()}`; - else if (IS_EQUIBOP) version = `Equibop v${VesktopNative.app.getVersion()}`; - else if (IS_STANDALONE) version = "Standalone"; + if (IS_WEB) version = "Web"; + if (IS_VESKTOP) version = `Vesktop v${VesktopNative.app.getVersion()}`; + if (IS_EQUIBOP) version = `Equibop v${VesktopNative.app.getVersion()}`; + if (IS_STANDALONE) version = "Standalone"; return support && version ? ` (${version})` : version; },