Skip to content

Commit

Permalink
fixup! Make it Wasm compatible.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Nov 13, 2024
1 parent 3957ec8 commit bc2d18d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/matrix-sdk/src/client/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -839,8 +839,8 @@ impl Client {
/// [`EventHandlerSubscriber`]: crate::event_handler::EventHandlerSubscriber
pub fn observe_events<Ev, Ctx>(&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)
}
Expand All @@ -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()))
}
Expand All @@ -869,8 +869,8 @@ impl Client {
room_id: Option<OwnedRoomId>,
) -> 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.
Expand Down

0 comments on commit bc2d18d

Please sign in to comment.