Add filter optional query param to /messages (r0.3.0 compatibility)
This commit is contained in:
parent
44387425ba
commit
886715b886
@ -9,3 +9,4 @@ Improvements:
|
|||||||
|
|
||||||
* Update `r0::directory::get_public_rooms` from r0.3.0 to r0.6.0
|
* Update `r0::directory::get_public_rooms` from r0.3.0 to r0.6.0
|
||||||
* Add `r0::directory::get_public_rooms_filtered` (introduced upstream in r0.3.0)
|
* Add `r0::directory::get_public_rooms_filtered` (introduced upstream in r0.3.0)
|
||||||
|
* Add `filter` optional parameter to `r0::sync::get_message_events` (introduced upstream in r0.3.0)
|
||||||
|
@ -6,6 +6,8 @@ use ruma_events::{collections::only, EventResult};
|
|||||||
use ruma_identifiers::RoomId;
|
use ruma_identifiers::RoomId;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
|
use crate::r0::filter::RoomEventFilter;
|
||||||
|
|
||||||
ruma_api! {
|
ruma_api! {
|
||||||
metadata {
|
metadata {
|
||||||
description: "Get message events for a room.",
|
description: "Get message events for a room.",
|
||||||
@ -44,6 +46,10 @@ ruma_api! {
|
|||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
#[ruma_api(query)]
|
#[ruma_api(query)]
|
||||||
pub limit: Option<UInt>,
|
pub limit: Option<UInt>,
|
||||||
|
/// A RoomEventFilter to filter returned events with.
|
||||||
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
|
#[ruma_api(query)]
|
||||||
|
pub filter: Option<RoomEventFilter>,
|
||||||
}
|
}
|
||||||
|
|
||||||
response {
|
response {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user