Skip to content

Conversation

wmeireles
Copy link

What changes are you proposing?

  • Added message_changed event listener to capture edited messages.
  • Reused the existing sensitive data detection flow for edited messages.
  • Added tests to ensure that confidential information inserted via edit also triggers a warning.

This solves the problem where the bot ignored sensitive data if it was added after a message edit.

How did you test these changes?

  • Ran local environment with Slack events.
  • Sent a message without PII (no alert) and then edited the same message adding a CPF → bot correctly triggered a warning.
  • Verified unit test test_message_changed.py passes.
  • All existing tests continue to pass.

Closing issues

Closes #20

- Add message_changed event listener to handle edited messages
- Check for sensitive data patterns when messages are edited
- Send warning notifications for edited messages with PII

Fixes marcieltorres#20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug when edit a message and put some sensitive data

1 participant