Charcoal-SE / SmokeDetector

Headless chatbot that detects spam and posts links to it in chatrooms for quick deletion.
https://metasmoke.erwaysoftware.com
Apache License 2.0
474 stars 182 forks source link

Editing a message that leaves a comment on a metasmoke report should edit the existing comment, not post a duplicate comment #6462

Open gparyani opened 3 years ago

gparyani commented 3 years ago

Just now, I left a comment on a report by replying to a SmokeDetector report message in chat. I noticed that I had made a typo in the message, and so my first instinct was to edit the message to fix the typo.

However, as SmokeDetector treats edits to messages as new messages, this resulted in a duplicate comment being posted on the metasmoke report: the first one with the typo, and the second one without. The natural expectation here is that it would instead result in the original comment being edited. I had to go to metasmoke and manually delete the duplicate comment.

The current behavior of treating a message edit as a new message makes sense in most cases, but can SmokeDetector please recognize when a message that leaves a comment on a report is being edited, and if so, edit the previous comment instead of making a new comment?

stale[bot] commented 3 years ago

This issue has been closed because it has had no recent activity. If this is still important, please add another comment and find someone with write permissions to reopen the issue. Thank you for your contributions.