diff --git a/src/plugins/noBlockedMessages/index.ts b/src/plugins/noBlockedMessages/index.ts index d3b37b02673..bd179f722ae 100644 --- a/src/plugins/noBlockedMessages/index.ts +++ b/src/plugins/noBlockedMessages/index.ts @@ -22,6 +22,7 @@ import { Logger } from "@utils/Logger"; import definePlugin, { OptionType } from "@utils/types"; import { findByPropsLazy } from "@webpack"; import { Message } from "discord-types/general"; +import {i18n} from "@webpack/common"; const RelationshipStore = findByPropsLazy("getRelationships", "isBlocked"); @@ -77,6 +78,7 @@ export default definePlugin({ }, shouldHide(props: MessageDeleteProps) { - return !props?.collapsedReason?.message.includes("deleted"); + const message = props?.collapsedReason?.message; + return !message.includes("deleted") && message !== i18n.Messages.HIDDEN_SPAM_MESSAGE_COUNT.message; } });