synadm
synadm copied to clipboard
Add an option to filter out empty rooms in room list
as discussed in #synadm:peek-a-boo.at
To be decicded:
- Should it really be an option in
synadm room list
that just shows empty rooms and purging has to be done using jq/shell magic/looping and invokingsynadm room delete
? - or rather be a separate command named something like
synadm room purge-empty
(similar tosynadm user prune-devices
- Or even both?
I am for the synadm room purge-empty
:+1:
Hi @erdnaxeli, thanks for the vote! Yes I like the separate purge/prune command as well and will implement it. Nonetheless I had started already to implement a --empty flag to the room list
command. It turned out that it it's not as straight forward as I thought due the pagination features. I kind of solved it but rather ugly, quick and dirty. This is the feature draft for now but I am not really happy with it. If you have a minute, give it a try on your server: https://github.com/JOJ0/synadm/tree/room_empty
I would welcome any input on how to proceed with this.