fix(admin): fix force-leaving rooms with no left_state PDU

This commit is contained in:
Laurențiu Nicola 2025-12-31 19:13:15 +02:00 committed by Jade Ellis
parent 2f11bf4d74
commit a10bd71945
No known key found for this signature in database
GPG key ID: 8705A2A3EBF77BD2

View file

@ -178,7 +178,8 @@ pub async fn leave_room(
.rooms
.state_cache
.left_state(user_id, room_id)
.await?
.await
.unwrap_or_default()
},
}
};