remove unused isDM

This commit is contained in:
nin0 2025-04-21 18:21:31 -04:00
parent a933b1a092
commit 85cd2cf9ba
Signed by: nin0
SSH key fingerprint: SHA256:NOoDnFVvZNFvqfXCIhzr6oCTDImZAbTTuyAysZ8Ufk8

View file

@ -11,7 +11,7 @@ import { Devs } from "@utils/constants";
import definePlugin from "@utils/types"; import definePlugin from "@utils/types";
import { findComponentByCodeLazy } from "@webpack"; import { findComponentByCodeLazy } from "@webpack";
import { ChannelStore, DateUtils, GuildStore, IconUtils, NavigationRouter, Popout, SnowflakeUtils, Text, UserStore, useStateFromStores } from "@webpack/common"; import { ChannelStore, DateUtils, GuildStore, IconUtils, NavigationRouter, Popout, SnowflakeUtils, Text, UserStore, useStateFromStores } from "@webpack/common";
import { Channel, Guild } from "discord-types/general"; import { Guild } from "discord-types/general";
const ServerProfileComponent = findComponentByCodeLazy("{guildProfile:v,fetchGuildProfile:O,fetchStatus:I}"); const ServerProfileComponent = findComponentByCodeLazy("{guildProfile:v,fetchGuildProfile:O,fetchStatus:I}");
const cl = classNameFactory("vc-serverprofileforward-"); const cl = classNameFactory("vc-serverprofileforward-");
@ -23,7 +23,6 @@ const checkForIconExistence = (guild: Guild) => {
if (!guild.icon) return false; if (!guild.icon) return false;
return true; return true;
}; };
const isDM = (channel: Channel) => channel.flags === 1;
export default definePlugin({ export default definePlugin({
name: "MoreForwardMeta", name: "MoreForwardMeta",