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>
This commit is contained in:
YashRaj 2025-09-15 00:56:47 +05:30 • committed by GitHub
parent 843a2816b9
commit 9a16c82529
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
});