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

correct comment about event field requirements
merge-requests/618/head
Matthias Ahouansou 1 month ago
parent 946216e9c6
commit 7ea75a82b1
No known key found for this signature in database

@ -1795,7 +1795,7 @@ async fn create_join_event(
.filter_map(|(_, id)| services().rooms.timeline.get_pdu_json(id).ok().flatten())
.map(PduEvent::convert_to_outgoing_federation_event)
.collect(),
// Event field is required if the room version supports restricted join rules.
// Event field is required if we sign the join event.
event: if sign_join_event {
Some(
to_raw_value(&CanonicalJsonValue::Object(value))

Loading…
Cancel
Save