turt2live / matrix-wishlist

Bridges, bots, and other tooling requested by community members
55 stars 2 forks source link

Bot/script to redact all messages in a room, or after a certain time #81

Open non-Jedi opened 7 years ago

non-Jedi commented 7 years ago

Request from @cjd:matrix.org https://matrix.to/#/!XqBunHwQIXUiqCaoxq:matrix.org/$15058273983283238XGSvD:matrix.org


People want:

~ turt2live

richvdh commented 7 years ago

the usecase is apparently "Private chat and I want to remove it when my partner and I are done chatting"

I'm dubious about whether this is the best way to achieve that end

MurzNN commented 7 years ago

Additionally will be good to also remove old files from room storage.

MurzNN commented 7 years ago

Another useful command will be "Destroy room" that delete (redact) all messages, remove all files, kick all members from room, set room to "Invite only" and do one last thing - kick himself from room.

ordinarygulp commented 5 years ago

This would be very good, if something was talked about that has privacy concerns, or if we want to remove very old history.

ghost commented 4 years ago

Any news on this ? As a user caring about data occupation on server cost (environment/energy) for files that are not useful anymore or history that can easily be deleted from server, really looking forward to this !

notsatvrn commented 4 years ago

I need this for my Riot group. Any updates on this?

ptman commented 4 years ago

Doesn't message retention take care of this?

commonism commented 3 years ago

I added redacting own messages in rooms functionality to the archiver bot.

https://github.com/russelldavies/matrix-archive/compare/master...commonism:redact

xanoni commented 3 years ago

I added redacting own messages in rooms functionality to the archiver bot.

russelldavies/matrix-archive@master...commonism:redact

This is great. You should add an option that allows users to define whether all messages should be deleted, or just messages older than X hours / days. After that is done, just running the script regularly (e.g., via cron in batch mode) would emulate disappearing messages.

MurzNN commented 3 years ago

I added redacting own messages in rooms functionality to the archiver bot.

russelldavies/matrix-archive@master...commonism:redact

@commonism Is this not merged to main branch yet? Did you create a PR with this feature? Cuz I still can't see the --redact command in main repo.

Mikaela commented 2 years ago

I am missing this as m.room.retention breaks rooms of all users from homeserver x leave, https://github.com/matrix-org/synapse/issues/11448, which has became unacceptable and I have two options:

My preferred solution would be a bot that I can run without selfhosting Synapse. I have this feature on Telegram, Signal, WhatsApp, IRC (Ergo CHATHISTORY) and XMPP (MUC MAM expiry).