refactor: Represent route auth information in the type system

This commit is contained in:
Ginger committed 2026-05-26 13:28:23 -04:00
1 parent 793d399477
commit 4b75d78ac4
78 files changed
+496 -482

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ pub(crate) async fn forget_room_route(
State(services): State<crate::State>,
body: Ruma<forget_room::v3::Request>,
) -> Result<forget_room::v3::Response> {
let user_id = body.sender_user();
let user_id = body.identity.sender_user();
let room_id = &body.room_id;
let joined = services.rooms.state_cache.is_joined(user_id, room_id);