From b96f18d076eb44b8009459bb07f984466a692413 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Wed, 28 May 2025 14:00:07 -0400 Subject: [PATCH] ExpandedUserTags: Some Misc Fixes --- .../{moreUserTags => expandedUserTags}/consts.ts | 7 ++++++- .../{moreUserTags => expandedUserTags}/index.tsx | 12 +++++++----- .../{moreUserTags => expandedUserTags}/settings.tsx | 7 ++++++- .../{moreUserTags => expandedUserTags}/styles.css | 0 .../{moreUserTags => expandedUserTags}/types.ts | 0 5 files changed, 19 insertions(+), 7 deletions(-) rename src/equicordplugins/{moreUserTags => expandedUserTags}/consts.ts (89%) rename src/equicordplugins/{moreUserTags => expandedUserTags}/index.tsx (94%) rename src/equicordplugins/{moreUserTags => expandedUserTags}/settings.tsx (95%) rename src/equicordplugins/{moreUserTags => expandedUserTags}/styles.css (100%) rename src/equicordplugins/{moreUserTags => expandedUserTags}/types.ts (100%) diff --git a/src/equicordplugins/moreUserTags/consts.ts b/src/equicordplugins/expandedUserTags/consts.ts similarity index 89% rename from src/equicordplugins/moreUserTags/consts.ts rename to src/equicordplugins/expandedUserTags/consts.ts index 14ea3dd9e..8d820637a 100644 --- a/src/equicordplugins/moreUserTags/consts.ts +++ b/src/equicordplugins/expandedUserTags/consts.ts @@ -9,9 +9,14 @@ import { GuildStore } from "@webpack/common"; import { RC } from "@webpack/types"; import { Channel, Guild, Message, User } from "discord-types/general"; +import { settings } from "./settings"; import type { ITag } from "./types"; -export const isWebhook = (message: Message, user: User) => !!message?.webhookId && user.isNonUserBot(); +export const isWebhook = (message: Message, user: User) => { + const isFollowed = message?.type === 0 && !!message?.messageReference && !settings.store.showWebhookTagFully; + return !!message?.webhookId && user.isNonUserBot() && !isFollowed; +}; + export const tags = [ { name: "WEBHOOK", diff --git a/src/equicordplugins/moreUserTags/index.tsx b/src/equicordplugins/expandedUserTags/index.tsx similarity index 94% rename from src/equicordplugins/moreUserTags/index.tsx rename to src/equicordplugins/expandedUserTags/index.tsx index b37f597fe..3948b4a1a 100644 --- a/src/equicordplugins/moreUserTags/index.tsx +++ b/src/equicordplugins/expandedUserTags/index.tsx @@ -76,7 +76,7 @@ export default definePlugin({ renderNicknameIcon(props) { const tagId = this.getTag({ user: UserStore.getUser(props.userId), - channel: ChannelStore.getChannel(this.getChannelId()), + channel: getCurrentChannel(), channelId: this.getChannelId(), isChat: false }); @@ -92,7 +92,7 @@ export default definePlugin({ message: props.message, user: UserStore.getUser(props.message.author.id), channelId: props.message.channel_id, - isChat: false + isChat: true }); return tagId &&