From 0dd623970bb1927db3c8d187f26c42cdfaf21bcc Mon Sep 17 00:00:00 2001 From: Julian Sparber Date: Wed, 23 Feb 2022 15:52:19 +0100 Subject: [PATCH] Enable 'unstable-pre-spec' ruma feature --- crates/matrix-sdk-base/Cargo.toml | 2 +- crates/matrix-sdk-base/src/rooms/mod.rs | 2 +- crates/matrix-sdk/Cargo.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/matrix-sdk-base/Cargo.toml b/crates/matrix-sdk-base/Cargo.toml index 484379ea8..0129f9051 100644 --- a/crates/matrix-sdk-base/Cargo.toml +++ b/crates/matrix-sdk-base/Cargo.toml @@ -64,7 +64,7 @@ wasm-bindgen = { version = "0.2.74", features = ["serde-serialize"], optional = [dependencies.ruma] git = "https://github.com/ruma/ruma/" rev = "b9f32bc6327542d382d4eb42ec43623495c50e66" -features = ["client-api-c"] +features = ["client-api-c", "unstable-pre-spec"] [dev-dependencies] futures = { version = "0.3.15", default-features = false, features = ["executor"] } diff --git a/crates/matrix-sdk-base/src/rooms/mod.rs b/crates/matrix-sdk-base/src/rooms/mod.rs index f766f5801..819aa93fd 100644 --- a/crates/matrix-sdk-base/src/rooms/mod.rs +++ b/crates/matrix-sdk-base/src/rooms/mod.rs @@ -79,7 +79,7 @@ impl BaseRoomInfo { true } AnyStateEventContent::RoomAvatar(a) => { - self.avatar_url = Some(a.url.clone()); + self.avatar_url = a.url.clone(); true } AnyStateEventContent::RoomName(n) => { diff --git a/crates/matrix-sdk/Cargo.toml b/crates/matrix-sdk/Cargo.toml index aafcd3357..98497eb2b 100644 --- a/crates/matrix-sdk/Cargo.toml +++ b/crates/matrix-sdk/Cargo.toml @@ -101,7 +101,7 @@ default_features = false [dependencies.ruma] git = "https://github.com/ruma/ruma/" rev = "b9f32bc6327542d382d4eb42ec43623495c50e66" -features = ["client-api-c", "compat", "rand", "unstable-msc2448"] +features = ["client-api-c", "compat", "rand", "unstable-msc2448", "unstable-pre-spec"] [dependencies.tokio-stream] version = "0.1.6"