fixup! feat(federation): support /make_join and /send_join for restricted rooms

remove unnecessery clone
This commit is contained in:
Matthias Ahouansou 2024-07-01 11:25:39 +01:00
parent 6565d3fa71
commit 96f3b88132
No known key found for this signature in database

View file

@ -1784,7 +1784,7 @@ async fn create_join_event(
.collect(),
// Event field is required if the room version supports restricted join rules.
event: Some(
to_raw_value(&CanonicalJsonValue::Object(value.clone()))
to_raw_value(&CanonicalJsonValue::Object(value))
.expect("To raw json should not fail since only change was adding signature"),
),
})