fix: ACL error shouldn't break the whole request

This commit is contained in:
Timo Kösters 2023-08-11 20:29:22 +02:00
parent 11103a92ed
commit f73a657a23
No known key found for this signature in database
GPG key ID: 0B25E636FBA7E4CB
2 changed files with 2 additions and 5 deletions

View file

@ -92,6 +92,8 @@ impl Service {
));
}
services().rooms.event_handler.acl_check(origin, &room_id)?;
// 1. Skip the PDU if we already have it as a timeline event
if let Some(pdu_id) = services().rooms.timeline.get_pdu_id(event_id)? {
return Ok(Some(pdu_id.to_vec()));