events: Generate initial event type aliases

This commit is contained in:
Jonas Platte 2021-10-01 18:58:32 +02:00
parent 678d3cd4ee
commit eff770d1d6
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -344,6 +344,7 @@ fn generate_event_type_aliases(
EventKindVariation::Full, EventKindVariation::Full,
EventKindVariation::Sync, EventKindVariation::Sync,
EventKindVariation::Stripped, EventKindVariation::Stripped,
EventKindVariation::Initial,
EventKindVariation::Redacted, EventKindVariation::Redacted,
EventKindVariation::RedactedSync, EventKindVariation::RedactedSync,
] ]
@ -360,7 +361,7 @@ fn generate_event_type_aliases(
EventKindVariation::RedactedSync => { EventKindVariation::RedactedSync => {
" from a `sync_events` response that has been redacted" " from a `sync_events` response that has been redacted"
} }
EventKindVariation::Initial => unreachable!(), EventKindVariation::Initial => " for creating a room",
}; };
let ev_type_doc = format!("An `{}` event{}.", event_type, doc_text); let ev_type_doc = format!("An `{}` event{}.", event_type, doc_text);