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.