From 9a16c82529210cc944d6104a3feb82d554382a83 Mon Sep 17 00:00:00 2001 From: YashRaj <91825864+YashRajCodes@users.noreply.github.com> Date: Mon, 15 Sep 2025 00:56:47 +0530 Subject: [PATCH] fix: prevent attempts to reply to messages stating that a message was pinned (#392) * fix: prevent attempts to reply to messages stating that a message was pinned * refactor: prevent linting error --------- Co-authored-by: thororen1234 <78185467+thororen1234@users.noreply.github.com> --- src/plugins/quickReply/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/quickReply/index.ts b/src/plugins/quickReply/index.ts index ffad86184..9cbef2637 100644 --- a/src/plugins/quickReply/index.ts +++ b/src/plugins/quickReply/index.ts @@ -134,6 +134,7 @@ function getNextMessage(isUp: boolean, isReply: boolean) { if (m.deleted) return false; if (!isReply && m.author.id !== meId) return false; // editing only own messages if (hasNoBlockedMessages && NoBlockedMessagesPlugin.isBlocked(m)) return false; + if (m.type === 6) return false; return true; });