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:
parent
843a2816b9
commit
9a16c82529
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue