fix: don't always assume ruma can generate reference hashes
This commit is contained in:
parent
ea3e7045b4
commit
6455e918be
5 changed files with 8 additions and 7 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue