From bc2d18dbd6da95fc09ddb21980d420b1ac87f793 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Wed, 13 Nov 2024 08:16:15 +0100 Subject: [PATCH] fixup! Make it Wasm compatible. --- crates/matrix-sdk/src/client/mod.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/matrix-sdk/src/client/mod.rs b/crates/matrix-sdk/src/client/mod.rs index b9461c8f4d..61ea1b48cb 100644 --- a/crates/matrix-sdk/src/client/mod.rs +++ b/crates/matrix-sdk/src/client/mod.rs @@ -839,8 +839,8 @@ impl Client { /// [`EventHandlerSubscriber`]: crate::event_handler::EventHandlerSubscriber pub fn observe_events(&self) -> ObservableEventHandler<(Ev, Ctx)> where - Ev: SyncEvent + DeserializeOwned + Send + Sync + 'static, - Ctx: EventHandlerContext + Send + Sync + 'static, + Ev: SyncEvent + DeserializeOwned + SendOutsideWasm + SyncOutsideWasm + 'static, + Ctx: EventHandlerContext + SendOutsideWasm + SyncOutsideWasm + 'static, { self.observe_room_events_impl(None) } @@ -856,8 +856,8 @@ impl Client { room_id: &RoomId, ) -> ObservableEventHandler<(Ev, Ctx)> where - Ev: SyncEvent + DeserializeOwned + Send + Sync + 'static, - Ctx: EventHandlerContext + Send + Sync + 'static, + Ev: SyncEvent + DeserializeOwned + SendOutsideWasm + SyncOutsideWasm + 'static, + Ctx: EventHandlerContext + SendOutsideWasm + SyncOutsideWasm + 'static, { self.observe_room_events_impl(Some(room_id.to_owned())) } @@ -869,8 +869,8 @@ impl Client { room_id: Option, ) -> ObservableEventHandler<(Ev, Ctx)> where - Ev: SyncEvent + DeserializeOwned + Send + Sync + 'static, - Ctx: EventHandlerContext + Send + Sync + 'static, + Ev: SyncEvent + DeserializeOwned + SendOutsideWasm + SyncOutsideWasm + 'static, + Ctx: EventHandlerContext + SendOutsideWasm + SyncOutsideWasm + 'static, { // The default value is `None`. It becomes `Some((Ev, Ctx))` once it has a // new value.