mirror of
https://codeberg.org/june64/mrvc.git
synced 2026-01-11 08:16:33 +01:00
introduce configuration options for recursively getting rooms
Introduce option for configuring maximum depth and option for only including suggested rooms.
This commit is contained in:
parent
919127e255
commit
6309b94498
3 changed files with 38 additions and 12 deletions
2
main.go
2
main.go
|
|
@ -73,7 +73,7 @@ func main() {
|
|||
fclient.WithTimeout(config.HomeserverVersionInfoTimeout),
|
||||
)
|
||||
|
||||
roomInfoTree := roominfotree.Get(config.Rooms, config.Recursive, client, federationClient)
|
||||
roomInfoTree := roominfotree.Get(config.Rooms, config.Recursive, config.RecursionMaxDepth, config.RecursionSuggestedOnly, client, federationClient)
|
||||
|
||||
for roomID, roomInfo := range roomInfoTree {
|
||||
fmt.Println("Room:")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue