synadm icon indicating copy to clipboard operation
synadm copied to clipboard

Delete join/leave messages from specific room

Open githuberyt opened this issue 3 years ago • 1 comments

Hello

if you could add a feature to delete or purge join/leave messages from a specific room that will be helpful to big announcements rooms

githuberyt avatar Mar 08 '21 02:03 githuberyt

Are you sure this is possible using the Synapse admin API's? You can always find a link to the API docs here: https://github.com/JOJ0/synadm#implementation-status--commands-list

If not it is perhaps possible using the Matrix Client API, but that is currently not the focus of synadm, it started out as a tool covering the admin api of Synapse. Basic functionality is there though but no enduser commands yet, I implemented it as a helper for some future synadm commands that are admin api related things where calls to the matrix api will be necessary: https://github.com/JOJ0/synadm/blob/771e533402b06b02194d3e77874556e5ae4dd5c1/synadm/api.py#L85

So it is not impossible to implement a command like this but as said not currently the focus. If by any chance you code Python and want to make a draft PR we can work on it together. This is the API docs: https://matrix.org/docs/spec/

Another possiblity would be you check out one of the wonderful tools that handle the matrix api itself. A good one I suppose is matrix-commander but I can't seem to find the function you need: https://github.com/8go/matrix-commander There is another one around but I forgot its name.

HTH

JOJ0 avatar Mar 09 '21 21:03 JOJ0