mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-19 08:41:24 +01:00
Bump ruma to 5aebd8f81fc70226940c1a46eb57ef298230d34f (SupportedVersions refactor)
<https://github.com/ruma/ruma/pull/2062>
This commit is contained in:
parent
d11731b74f
commit
3d7d28fba7
5 changed files with 31 additions and 21 deletions
|
|
@ -3,7 +3,7 @@ use std::{fmt::Debug, mem, time::Duration};
|
|||
use bytes::BytesMut;
|
||||
use ruma::api::{
|
||||
appservice::Registration, IncomingResponse, MatrixVersion, OutgoingRequest,
|
||||
SendAccessToken,
|
||||
SendAccessToken, SupportedVersions,
|
||||
};
|
||||
use tracing::warn;
|
||||
|
||||
|
|
@ -31,7 +31,10 @@ where
|
|||
.try_into_http_request::<BytesMut>(
|
||||
&destination,
|
||||
SendAccessToken::IfRequired(hs_token),
|
||||
&[MatrixVersion::V1_0],
|
||||
&SupportedVersions {
|
||||
versions: [MatrixVersion::V1_0].into_iter().collect(),
|
||||
features: vec![],
|
||||
},
|
||||
)
|
||||
.unwrap()
|
||||
.map(BytesMut::freeze);
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ use ruma::{
|
|||
},
|
||||
},
|
||||
EndpointError, IncomingResponse, MatrixVersion, OutgoingRequest,
|
||||
OutgoingResponse, SendAccessToken,
|
||||
OutgoingResponse, SendAccessToken, SupportedVersions,
|
||||
},
|
||||
directory::{Filter, RoomNetwork},
|
||||
events::{
|
||||
|
|
@ -199,7 +199,10 @@ where
|
|||
.try_into_http_request::<Vec<u8>>(
|
||||
&actual_destination_str,
|
||||
SendAccessToken::IfRequired(""),
|
||||
&[MatrixVersion::V1_11],
|
||||
&SupportedVersions {
|
||||
versions: [MatrixVersion::V1_11].into_iter().collect(),
|
||||
features: vec![],
|
||||
},
|
||||
)
|
||||
.map_err(|error| {
|
||||
warn!(
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ use ruma::{
|
|||
},
|
||||
},
|
||||
IncomingResponse, MatrixVersion, OutgoingRequest, SendAccessToken,
|
||||
SupportedVersions,
|
||||
},
|
||||
events::{
|
||||
room::power_levels::RoomPowerLevelsEventContent, AnySyncTimelineEvent,
|
||||
|
|
@ -78,7 +79,10 @@ impl Service {
|
|||
.try_into_http_request::<BytesMut>(
|
||||
&destination,
|
||||
SendAccessToken::IfRequired(""),
|
||||
&[MatrixVersion::V1_0],
|
||||
&SupportedVersions {
|
||||
versions: [MatrixVersion::V1_0].into_iter().collect(),
|
||||
features: vec![],
|
||||
},
|
||||
)
|
||||
.map_err(|error| {
|
||||
warn!(%error, %destination, "Failed to find destination");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue