fix: do not expect that all http requests are valid reqwest requests

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
Matthias Ahouansou 2024-04-01 23:22:19 -04:00 committed by June
parent 93a43a0eda
commit c31fb7134a
6 changed files with 30 additions and 41 deletions

View file

@ -528,10 +528,7 @@ async fn process_room_presence_updates(
presence_updates: &mut HashMap<OwnedUserId, PresenceEvent>, room_id: &RoomId, since: u64,
) -> Result<()> {
// Take presence updates from this room
for (user_id, _, presence_event) in services()
.presence
.presence_since(room_id, since)
{
for (user_id, _, presence_event) in services().presence.presence_since(room_id, since) {
match presence_updates.entry(user_id) {
Entry::Vacant(slot) => {
slot.insert(presence_event);