aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/reviewDB/utils.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/reviewDB/utils.tsx')
-rw-r--r--src/plugins/reviewDB/utils.tsx13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/plugins/reviewDB/utils.tsx b/src/plugins/reviewDB/utils.tsx
index da800b0..a9c8ca5 100644
--- a/src/plugins/reviewDB/utils.tsx
+++ b/src/plugins/reviewDB/utils.tsx
@@ -20,24 +20,13 @@ import { classNameFactory } from "@api/Styles";
import { Logger } from "@utils/Logger";
import { openModal } from "@utils/modal";
import { findByProps } from "@webpack";
-import { FluxDispatcher, React, SelectedChannelStore, Toasts, UserUtils } from "@webpack/common";
+import { React, Toasts } from "@webpack/common";
import { Review, UserType } from "./entities";
import { settings } from "./settings";
export const cl = classNameFactory("vc-rdb-");
-export async function openUserProfileModal(userId: string) {
- await UserUtils.fetchUser(userId);
-
- await FluxDispatcher.dispatch({
- type: "USER_PROFILE_MODAL_OPEN",
- userId,
- channelId: SelectedChannelStore.getChannelId(),
- analyticsLocation: "Explosive Hotel"
- });
-}
-
export function authorize(callback?: any) {
const { OAuth2AuthorizeModal } = findByProps("OAuth2AuthorizeModal");