client-api: Clarify that get_context always returns 'event' even if limit is zero

This commit is contained in:
Kévin Commaille 2022-12-14 12:59:45 +01:00 committed by Kévin Commaille
parent 675e6f43cd
commit 803fdc52f7

View File

@ -39,7 +39,10 @@ pub mod v3 {
#[ruma_api(path)]
pub event_id: OwnedEventId,
/// The maximum number of events to return.
/// The maximum number of context events to return.
///
/// This limit applies to the sum of the `events_before` and `events_after` arrays. The
/// requested event ID is always returned in `event` even if the limit is `0`.
///
/// Defaults to 10.
#[ruma_api(query)]