mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-24 15:35:11 +00:00
im so tupid sometimes
This commit is contained in:
parent
9205b5d900
commit
a62788c47b
1 changed files with 3 additions and 3 deletions
|
@ -32,7 +32,8 @@ import {
|
|||
useRef,
|
||||
UsernameUtils,
|
||||
UserStore,
|
||||
useState
|
||||
useState,
|
||||
useStateFromStores
|
||||
} from "@webpack/common";
|
||||
import { Channel, Guild, User } from "discord-types/general";
|
||||
|
||||
|
@ -44,7 +45,6 @@ const TextTypes = findByPropsLazy("APPLICATION", "GROUP_DM", "GUILD");
|
|||
const FrequencyModule = findByPropsLazy("getFrequentlyWithoutFetchingLatest");
|
||||
const FrequentsModule = findByPropsLazy("getChannelHistory", "getFrequentGuilds");
|
||||
|
||||
const wrapperFn = findByCodeLazy("prevDeps:void 0,");
|
||||
const convertItem = findByCodeLazy("GROUP_DM:return{", "GUILD_VOICE:case");
|
||||
const loadFunction = findByCodeLazy(".frecencyWithoutFetchingLatest)");
|
||||
const SearchHandler = findByCodeLazy("createSearchContext", "setLimit");
|
||||
|
@ -494,7 +494,7 @@ export default function SearchModal({ modalProps, onSubmit, input, searchType =
|
|||
|
||||
loadFunction();
|
||||
|
||||
const frequentChannels: Channel[] = wrapperFn([FrequencyModule], () => FrequencyModule.getFrequentlyWithoutFetchingLatest());
|
||||
const frequentChannels: Channel[] = useStateFromStores([FrequencyModule], () => FrequencyModule.getFrequentlyWithoutFetchingLatest());
|
||||
const hasQuery = query !== "";
|
||||
|
||||
function getItem(e: DestinationItem): Result {
|
||||
|
|
Loading…
Add table
Reference in a new issue