client-api: Move get_event_by_timestamp out of unstable-msc3030
According to Matrix 1.6
This commit is contained in:
parent
9d8784ee9a
commit
9f92794294
@ -1,5 +1,9 @@
|
||||
# [unreleased]
|
||||
|
||||
Improvements:
|
||||
|
||||
* Stabilize support for getting an event by timestamp (MSC3030 / Matrix 1.6)
|
||||
|
||||
# 0.16.0
|
||||
|
||||
Breaking changes:
|
||||
|
@ -25,7 +25,6 @@ unstable-msc2654 = []
|
||||
unstable-msc2677 = []
|
||||
unstable-msc2965 = []
|
||||
unstable-msc2967 = []
|
||||
unstable-msc3030 = []
|
||||
unstable-msc3488 = []
|
||||
unstable-msc3575 = []
|
||||
client = []
|
||||
|
@ -2,7 +2,6 @@
|
||||
|
||||
pub mod aliases;
|
||||
pub mod create_room;
|
||||
#[cfg(feature = "unstable-msc3030")]
|
||||
pub mod get_event_by_timestamp;
|
||||
pub mod get_room_event;
|
||||
pub mod report_content;
|
||||
|
@ -2,10 +2,10 @@
|
||||
//!
|
||||
//! Get the ID of the event closest to the given timestamp.
|
||||
|
||||
pub mod unstable {
|
||||
//! `/unstable/` ([MSC3030])
|
||||
pub mod v1 {
|
||||
//! `/v1/` ([spec])
|
||||
//!
|
||||
//! [MSC3030]: https://github.com/matrix-org/matrix-spec-proposals/pull/3030
|
||||
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv1roomsroomidtimestamp_to_event
|
||||
|
||||
use ruma_common::{
|
||||
api::{request, response, Direction, Metadata},
|
||||
@ -18,6 +18,7 @@ pub mod unstable {
|
||||
authentication: AccessToken,
|
||||
history: {
|
||||
unstable => "/_matrix/client/unstable/org.matrix.msc3030/rooms/:room_id/timestamp_to_event",
|
||||
1.6 => "/_matrix/client/v1/rooms/:room_id/timestamp_to_event",
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -136,10 +136,7 @@ unstable-msc2746 = ["ruma-common/unstable-msc2746"]
|
||||
unstable-msc2870 = ["ruma-common/unstable-msc2870"]
|
||||
unstable-msc2965 = ["ruma-client-api?/unstable-msc2965"]
|
||||
unstable-msc2967 = ["ruma-client-api?/unstable-msc2967"]
|
||||
unstable-msc3030 = [
|
||||
"ruma-client-api?/unstable-msc3030",
|
||||
"ruma-federation-api?/unstable-msc3030",
|
||||
]
|
||||
unstable-msc3030 = ["ruma-federation-api?/unstable-msc3030"]
|
||||
unstable-msc3202 = ["ruma-appservice-api?/unstable-msc3202"]
|
||||
unstable-msc3245 = ["ruma-common/unstable-msc3245"]
|
||||
unstable-msc3246 = ["ruma-common/unstable-msc3246"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user