Fix matrix api joinRoom() for remote rooms #60

Merged
cadence merged 9 commits from Elliu/out-of-your-element:fix-remote-join into main 2025-11-02 07:50:16 +00:00

9 commits

Author SHA1 Message Date
a55d7a1632 Style match 2025-11-02 20:48:46 +13:00
ab69eab8a4 Fix tests for new link space error message 2025-11-01 21:01:15 +09:00
717dc185e5 Misc. fixes for remote join 2025-11-01 20:50:36 +09:00
7932f8af85 Add "please try invite" message when joinRoom in /api/link-space fails 2025-11-01 20:50:36 +09:00
0776cc6ccd Fill in more of reg for other people to test with 2025-11-01 20:50:36 +09:00
e7b4dfea9c Fix /api/link-space joinRoom() for remote spaces 2025-11-01 20:50:36 +09:00
ea08e16963 Update tests for new types and code path 2025-11-01 20:50:36 +09:00
1efd301e1d Cleanup 2025-11-01 20:50:36 +09:00
dc7b444086 Fix matrix api joinRoom() for remote rooms
When using self-service mode and trying to link with a remote matrix
room (room not in the same HS as the bridge user), then we need to add
the "via" HSs to join the room with, or else it fails.

We get it from the "m.space.child" in the "children_state" of the space
hierarchy.

It seems like the "via" information can also be stored in the
"m.space.parent" in the states of the room, but hopefully this shouldn't
be needed in sane implementations
2025-11-01 20:50:36 +09:00