fix: don't always assume ruma can generate reference hashes

This commit is contained in:
Matthias Ahouansou 2024-07-07 13:30:53 +01:00
parent ea3e7045b4
commit 6455e918be
No known key found for this signature in database
5 changed files with 8 additions and 7 deletions

View file

@ -1815,7 +1815,7 @@ pub async fn create_invite_route(
let event_id = EventId::parse(format!(
"${}",
ruma::signatures::reference_hash(&signed_event, &body.room_version)
.expect("ruma can calculate reference hashes")
.expect("Event format validated when event was hashed")
))
.expect("ruma's reference hashes are valid event ids");