Migrate from PrivateChannelsStore
This commit is contained in:
parent
c6964575ea
commit
4640ef6973
2 changed files with 6 additions and 6 deletions
|
|
@ -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();
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue