Revert "Fixes"

This reverts commit 6fc7fc9f97.
This commit is contained in:
thororen1234 2024-10-22 14:45:56 -04:00
parent a7a722dab9
commit 2837028793
8 changed files with 47 additions and 51 deletions

View file

@ -19,7 +19,7 @@
import { NavContextMenuPatchCallback } from "@api/ContextMenu";
import { ScreenshareIcon } from "@components/Icons";
import { Devs } from "@utils/constants";
import { openMediaModal } from "@utils/discord";
import { openImageModal } from "@utils/discord";
import definePlugin from "@utils/types";
import { Menu } from "@webpack/common";
import { Channel, User } from "discord-types/general";
@ -57,7 +57,7 @@ export const handleViewPreview = async ({ guildId, channelId, ownerId }: Applica
const previewUrl = await ApplicationStreamPreviewStore.getPreviewURL(guildId, channelId, ownerId);
if (!previewUrl) return;
openMediaModal(previewUrl);
openImageModal(previewUrl);
};
export const addViewStreamContext: NavContextMenuPatchCallback = (children, { userId }: { userId: string | bigint; }) => {