Skip to content

Commit

Permalink
Merge pull request #34 from RocketChat/feat/set-true-prevent-va
Browse files Browse the repository at this point in the history
feat: setting false to when it was not prevent
  • Loading branch information
AllanPazRibeiro authored Oct 10, 2023
2 parents f94daa6 + 13b8342 commit 5be0637
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/EventHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ export const handlePreMessageSentPreventAsync = async (
persistence,
rocketChatUserId: message.sender.id
})

wasPrevent = false
}
// If room type is PRIVATE_GROUP or DIRECT_MESSAGE, check if there's any dummy user in the room
const members = await read.getRoomReader().getMembers(message.room.id);
Expand Down

0 comments on commit 5be0637

Please sign in to comment.