complement/tests/msc3902
Kegan Dougal 3fbfb757db
Use functional options for creating and joining rooms (#767)
* Use functional options for creating and joining rooms

This is much more ergonomic and clear from call-sites what is happening.

* Fix chicken/egg problem with ServerRoom and ServerRoomImpl

To make the impl you need a room. To make a room you need an impl.
Instead, pass in the room to the impl so you do not need a room to
make an impl. This makes the way you call the impl a bit less elegant
as you refer to the room twice e.g `room.EventCreator(room, ...)` but
allows custom impls to use functional options.

* Assign into the rooms map with the actual room ID
2025-03-05 09:29:01 +00:00
..
federation_room_join_partial_state_test.go Use functional options for creating and joining rooms (#767) 2025-03-05 09:29:01 +00:00
main_test.go Standardise entry points for Complement tests (#669) 2023-10-12 16:41:13 +01:00