feat: support room version 5

This commit is contained in:
Timo Kösters 2021-07-21 11:29:13 +02:00
parent 1587f2cd52
commit 918df9ca6d
No known key found for this signature in database
GPG key ID: 24DA7517711A2BA4
6 changed files with 35 additions and 22 deletions

View file

@ -328,6 +328,7 @@ pub(crate) fn gen_event_id_canonical_json(
let event_id = EventId::try_from(&*format!(
"${}",
// Anything higher than version3 behaves the same
ruma::signatures::reference_hash(&value, &RoomVersionId::Version6)
.expect("ruma can calculate reference hashes")
))