Space room dm fetching #16

Merged
flaxeneel2 merged 21 commits from space-room-dm-fetching into master 2026-02-22 22:41:04 +01:00
flaxeneel2 commented 2026-02-22 18:49:09 +01:00 (Migrated from github.com)

this implements fetching of spaces, dms and groups.

added methods:

  • get_spaces: get the spaces the user is in
  • get_rooms: get the rooms the user is in. this will probably not be used much in frontend, since get_all_spaces_with_trees and get_dm_rooms together should be more than enough to never need the generic get_rooms
  • get_all_spaces_with_trees: this returns a Vec<RawSpace> type of all the spaces the user is in
  • get_space_tree: Returns RawSpace, this function is used with get_all_spaces_with_trees, but is exposed to the frontend if some individual space needs its tree fetched for some reason
  • get_dm_rooms: Returns all 1:1 dm rooms as well as group chats (which for now I've described as rooms that arent in any space, this does overlap with the legacy space-less rooms though)
this implements fetching of spaces, dms and groups. added methods: - `get_spaces`: get the spaces the user is in - `get_rooms`: get the rooms the user is in. this will probably not be used much in frontend, since `get_all_spaces_with_trees` and `get_dm_rooms` together should be more than enough to never need the generic `get_rooms` - `get_all_spaces_with_trees`: this returns a `Vec<RawSpace>` type of all the spaces the user is in - `get_space_tree`: Returns `RawSpace`, this function is used with `get_all_spaces_with_trees`, but is exposed to the frontend if some individual space needs its tree fetched for some reason - `get_dm_rooms`: Returns all 1:1 dm rooms as well as group chats (which for now I've described as rooms that arent in any space, this does overlap with the legacy space-less rooms though)
rayyan-parkar (Migrated from github.com) approved these changes 2026-02-22 22:40:34 +01:00
rayyan-parkar (Migrated from github.com) left a comment

well done, you finally commented your code my goat
lgtm

well done, you finally commented your code my goat lgtm
Sign in to join this conversation.
No description provided.