federation-api: Move get_event_by_timestamp out of unstable-msc3030

According to Matrix 1.6
This commit is contained in:
Kévin Commaille 2023-02-14 20:41:56 +01:00 committed by Kévin Commaille
parent 9f92794294
commit 1f83b19653
5 changed files with 8 additions and 7 deletions

View File

@ -1,5 +1,9 @@
# [unreleased]
Improvements:
* Stabilize support for getting an event by timestamp (MSC3030 / Matrix 1.6)
# 0.7.0
Bug fixes:

View File

@ -21,7 +21,6 @@ client = []
server = []
unstable-exhaustive-types = []
unstable-msc2448 = []
unstable-msc3030 = []
unstable-msc3618 = []
unstable-msc3706 = []
unstable-msc3723 = []

View File

@ -1,7 +1,6 @@
//! Endpoints to get general information about events
pub mod get_event;
#[cfg(feature = "unstable-msc3030")]
pub mod get_event_by_timestamp;
pub mod get_missing_events;
pub mod get_room_state;

View File

@ -2,10 +2,10 @@
//!
//! Get the ID of the event closest to the given timestamp.
pub mod unstable {
//! `/unstable/` ([spec])
pub mod v1 {
//! `/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::{
api::{request, response, Direction, Metadata},
@ -18,6 +18,7 @@ pub mod unstable {
authentication: ServerSignatures,
history: {
unstable => "/_matrix/federation/unstable/org.matrix.msc3030/timestamp_to_event/:room_id",
1.6 => "/_matrix/federation/v1/timestamp_to_event/:room_id",
}
};

View File

@ -136,7 +136,6 @@ 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-federation-api?/unstable-msc3030"]
unstable-msc3202 = ["ruma-appservice-api?/unstable-msc3202"]
unstable-msc3245 = ["ruma-common/unstable-msc3245"]
unstable-msc3246 = ["ruma-common/unstable-msc3246"]
@ -180,7 +179,6 @@ __ci = [
"unstable-msc2870",
"unstable-msc2965",
"unstable-msc2967",
"unstable-msc3030",
"unstable-msc3202",
"unstable-msc3245",
"unstable-msc3246",