various cleanup tweaks/fixes

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk authored and strawberry committed 2024-10-25 00:36:30 -04:00
1 parent 96fcf7f94d
commit 26dcab272d
18 files changed
+86 -99

No files matched your search

+2 -2
View File
@@ -77,14 +77,14 @@ pub(crate) async fn search_events_route(
.user_can_see_state_events(sender_user, room_id)
.await
{
let room_state = services
let room_state: Vec<_> = services
.rooms
.state_accessor
.room_state_full(room_id)
.await?
.values()
.map(|pdu| pdu.to_state_event())
.collect::<Vec<_>>();
.collect();
debug!("Room state: {:?}", room_state);