working on Ragnarok write function to grab parent spaces of room "a space is jus...
Buckwheat :haskell: 🦀 :freebsd: :openbsd: :netbsd: @buckwheat@neondystopia.world
working on RagnarokI don't know anymore whether I'm a genius or an absolute moron... maybe both, but I think I can solve this, I hope...
write function to grab parent spaces of room
"a space is just a room anyways"
argument ofRoom, return typeOption<Vec<Room>>
write function to grab child rooms of a space
"most rooms will have only one parent anyways"
argument ofRoom, return typeOption<Vec<Room>>
realize Matrix Rust SDK has no way to get a room by its name
start writing function to get room by name
"I can just get the rooms of a space and checkBaseRoom.name()"
decide to get space rooms via my child rooms function
realize argument of child rooms function takesRoom
realize I need to do iteration fuckery
realize returned data is in a fuckingOption<>