federation-api: Move get_event_by_timestamp out of unstable-msc3030
According to Matrix 1.6
This commit is contained in:
parent
9f92794294
commit
1f83b19653
@ -1,5 +1,9 @@
|
|||||||
# [unreleased]
|
# [unreleased]
|
||||||
|
|
||||||
|
Improvements:
|
||||||
|
|
||||||
|
* Stabilize support for getting an event by timestamp (MSC3030 / Matrix 1.6)
|
||||||
|
|
||||||
# 0.7.0
|
# 0.7.0
|
||||||
|
|
||||||
Bug fixes:
|
Bug fixes:
|
||||||
|
@ -21,7 +21,6 @@ client = []
|
|||||||
server = []
|
server = []
|
||||||
unstable-exhaustive-types = []
|
unstable-exhaustive-types = []
|
||||||
unstable-msc2448 = []
|
unstable-msc2448 = []
|
||||||
unstable-msc3030 = []
|
|
||||||
unstable-msc3618 = []
|
unstable-msc3618 = []
|
||||||
unstable-msc3706 = []
|
unstable-msc3706 = []
|
||||||
unstable-msc3723 = []
|
unstable-msc3723 = []
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
//! Endpoints to get general information about events
|
//! Endpoints to get general information about events
|
||||||
|
|
||||||
pub mod get_event;
|
pub mod get_event;
|
||||||
#[cfg(feature = "unstable-msc3030")]
|
|
||||||
pub mod get_event_by_timestamp;
|
pub mod get_event_by_timestamp;
|
||||||
pub mod get_missing_events;
|
pub mod get_missing_events;
|
||||||
pub mod get_room_state;
|
pub mod get_room_state;
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
//!
|
//!
|
||||||
//! Get the ID of the event closest to the given timestamp.
|
//! Get the ID of the event closest to the given timestamp.
|
||||||
|
|
||||||
pub mod unstable {
|
pub mod v1 {
|
||||||
//! `/unstable/` ([spec])
|
//! `/v1/` ([spec])
|
||||||
//!
|
//!
|
||||||
//! [spec]: https://github.com/matrix-org/matrix-spec-proposals/pull/3030
|
//! [spec]: https://spec.matrix.org/latest/server-server-api/#get_matrixfederationv1timestamp_to_eventroomid
|
||||||
|
|
||||||
use ruma_common::{
|
use ruma_common::{
|
||||||
api::{request, response, Direction, Metadata},
|
api::{request, response, Direction, Metadata},
|
||||||
@ -18,6 +18,7 @@ pub mod unstable {
|
|||||||
authentication: ServerSignatures,
|
authentication: ServerSignatures,
|
||||||
history: {
|
history: {
|
||||||
unstable => "/_matrix/federation/unstable/org.matrix.msc3030/timestamp_to_event/:room_id",
|
unstable => "/_matrix/federation/unstable/org.matrix.msc3030/timestamp_to_event/:room_id",
|
||||||
|
1.6 => "/_matrix/federation/v1/timestamp_to_event/:room_id",
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -136,7 +136,6 @@ unstable-msc2746 = ["ruma-common/unstable-msc2746"]
|
|||||||
unstable-msc2870 = ["ruma-common/unstable-msc2870"]
|
unstable-msc2870 = ["ruma-common/unstable-msc2870"]
|
||||||
unstable-msc2965 = ["ruma-client-api?/unstable-msc2965"]
|
unstable-msc2965 = ["ruma-client-api?/unstable-msc2965"]
|
||||||
unstable-msc2967 = ["ruma-client-api?/unstable-msc2967"]
|
unstable-msc2967 = ["ruma-client-api?/unstable-msc2967"]
|
||||||
unstable-msc3030 = ["ruma-federation-api?/unstable-msc3030"]
|
|
||||||
unstable-msc3202 = ["ruma-appservice-api?/unstable-msc3202"]
|
unstable-msc3202 = ["ruma-appservice-api?/unstable-msc3202"]
|
||||||
unstable-msc3245 = ["ruma-common/unstable-msc3245"]
|
unstable-msc3245 = ["ruma-common/unstable-msc3245"]
|
||||||
unstable-msc3246 = ["ruma-common/unstable-msc3246"]
|
unstable-msc3246 = ["ruma-common/unstable-msc3246"]
|
||||||
@ -180,7 +179,6 @@ __ci = [
|
|||||||
"unstable-msc2870",
|
"unstable-msc2870",
|
||||||
"unstable-msc2965",
|
"unstable-msc2965",
|
||||||
"unstable-msc2967",
|
"unstable-msc2967",
|
||||||
"unstable-msc3030",
|
|
||||||
"unstable-msc3202",
|
"unstable-msc3202",
|
||||||
"unstable-msc3245",
|
"unstable-msc3245",
|
||||||
"unstable-msc3246",
|
"unstable-msc3246",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user