dylex / slack-libpurple

Slack module for libpurple
GNU General Public License v2.0
280 stars 38 forks source link

slack-message: add option for dropping old messages #184

Closed berrange closed 4 months ago

berrange commented 1 year ago

Sometimes a user (or bot) edits or deletes a message that is quite old. It can be very confusing to see such messages inserted in the current timeline, even with the '[edit]' or 'Deleted message' prefix, because they are totally out of context.

This adds an account option that allows hiding of edits/deletes on messages that are older than a certain number of hours. The option defaults to 0, so users get the full stream unless opting out.

This feature was motivated by an incredibly annoying bot on my workspace, which deletes its own messages when they are 30 days old. IOW, we have a constant stream of irrelevant 'deleted message' messages inserted into channels, that are completely outdated and confusing to the current discussion.