Migrate from PrivateChannelsStore

This commit is contained in:
thororen1234 2025-08-05 14:52:51 -04:00
parent c6964575ea
commit 4640ef6973
No known key found for this signature in database
2 changed files with 6 additions and 6 deletions

View file

@ -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();
},

View file

@ -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;
},