Skip to content

Commit 6b7c05e

Browse files
committed
Upgrade Ruma
1 parent 76b03f7 commit 6b7c05e

4 files changed

Lines changed: 6 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Breaking changes:
1313
them as if they were exhaustive, use the `ruma_unstable_exhaustive_types`
1414
compile-time `cfg` setting.
1515
* Changed `users::create_or_modify::v2` third party id parsing by adding a new type without `validated_at` and `added_at` fields (which are not sent according to the API documentation)
16+
* Upgrade ruma to 0.13.0
1617

1718
Improvement:
1819

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ shared-secret-registration-mac = ["dep:hex", "dep:hmac", "dep:sha1"]
1919
[dependencies]
2020
hex = { version = "0.4.3", optional = true }
2121
hmac = { version = "0.12.1", optional = true }
22-
ruma = { version = "0.12.0", features = ["api", "events"] }
22+
ruma = { version = "0.13.0", features = ["api", "events"] }
2323
serde = { version = "1.0.118", features = ["derive"] }
2424
sha1 = { version = "0.10.1", optional = true }
2525

src/rooms/list_rooms/v1.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
use ruma::{
33
api::{metadata, request, response, Metadata},
44
events::room::{guest_access::GuestAccess, history_visibility::HistoryVisibility},
5-
room::RoomType,
5+
room::{JoinRuleKind, RoomType},
66
serde::{OrdAsRefStr, PartialEqAsRefStr, PartialOrdAsRefStr, StringEnum},
7-
space::SpaceRoomJoinRule,
87
uint, OwnedRoomAliasId, OwnedRoomId, OwnedUserId, UInt,
98
};
109
use serde::{Deserialize, Serialize};
@@ -183,7 +182,7 @@ pub struct RoomDetails {
183182
pub public: bool,
184183

185184
/// Join rules of the room.
186-
pub join_rules: Option<SpaceRoomJoinRule>,
185+
pub join_rules: Option<JoinRuleKind>,
187186

188187
/// Guest access of the room
189188
pub guest_access: Option<GuestAccess>,

src/rooms/room_details/v1.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
use ruma::{
33
api::{metadata, request, response, Metadata},
44
events::room::{guest_access::GuestAccess, history_visibility::HistoryVisibility},
5-
room::RoomType,
6-
space::SpaceRoomJoinRule,
5+
room::{JoinRuleKind, RoomType},
76
uint, OwnedMxcUri, OwnedRoomAliasId, OwnedRoomId, OwnedUserId, UInt,
87
};
98

@@ -68,7 +67,7 @@ pub struct Response {
6867
pub public: bool,
6968

7069
/// Join rules of the room.
71-
pub join_rules: Option<SpaceRoomJoinRule>,
70+
pub join_rules: Option<JoinRuleKind>,
7271

7372
/// Guest access of the room
7473
pub guest_access: Option<GuestAccess>,

0 commit comments

Comments
 (0)