Skip to content

Optionally remove redacted event content from room buffers #300

@phil-s

Description

@phil-s

Copying comments from chat

P: After deleting a spam message, what would be a way to remove it (or reduce it to the [redacted] state) from the Ement room buffer? Those telegram spam messages are so big and attention-grabbing, and I'd love to have them just gone from the buffers once they've been dealt with (without having to disconnect and reconnect).

A: Yeah, good point. Well the simplest answer is to C-x C-q and then manually remove it from the buffer. :) But feel free to post an issue or a patch on the repo to discuss more permanent solutions. I decided to just mark redacted messages as strikethrough during a session so that you can still see redacted messages (for the cases where you'd be curious what was redacted; even a room admin might want to know if a user was trying to hide his nasty content to avoid a ban), but obviously in case of spam or bad content, one might not even want to see what's already been redacted. We should probably make an option, e.g. maybe set it to remove content of redacted messages unless you are a mod/admin in the room, something like that.

P: I think the default behaviour is fine and useful generally, but maybe C-u C-k could be a combo to both redact and hide the message -- or just have a separate command to do the hiding.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions