synadm icon indicating copy to clipboard operation
synadm copied to clipboard

Add an option to filter out empty rooms in room list

Open JOJ0 opened this issue 2 years ago • 2 comments

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 invoking synadm room delete?
  • or rather be a separate command named something like synadm room purge-empty (similar to synadm user prune-devices
  • Or even both?

JOJ0 avatar Dec 01 '21 07:12 JOJ0

I am for the synadm room purge-empty :+1:

erdnaxeli avatar Dec 01 '21 09:12 erdnaxeli

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.

JOJ0 avatar Dec 08 '21 09:12 JOJ0