1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2025-06-27 16:35:59 +00:00

no better solution to allocating other than nesting

This commit is contained in:
mikoto 2024-06-03 21:27:38 +02:00
parent 914e9d713c
commit a37d02edde

View file

@ -289,15 +289,13 @@ async fn sync_helper(
}
let mut left_rooms = BTreeMap::new();
let all_left_rooms: Vec<_> = if filter.room.include_leave {
services()
if filter.room.include_leave {
let all_left_rooms: Vec<_> = services()
.rooms
.state_cache
.rooms_left(&sender_user)
.collect()
} else {
Vec::default()
};
.collect();
for result in all_left_rooms {
let (room_id, _) = result?;
@ -462,6 +460,7 @@ async fn sync_helper(
},
);
}
}
let mut invited_rooms = BTreeMap::new();
let all_invited_rooms: Vec<_> = services()