Skip to content

Commit b918f09

Browse files
Daniel SalinasDaniel Salinas
Daniel Salinas
authored and
Daniel Salinas
committed
Restore use of SyncOutsideWasm for EventHandlers
1 parent 5454e4b commit b918f09

File tree

1 file changed

+2
-2
lines changed
  • crates/matrix-sdk/src/event_handler

1 file changed

+2
-2
lines changed

crates/matrix-sdk/src/event_handler/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ use anymap2::any::CloneAnySendSync;
4848
use futures_util::stream::{FuturesUnordered, StreamExt};
4949
use matrix_sdk_base::{
5050
deserialized_responses::{EncryptionInfo, SyncTimelineEvent},
51-
SendOutsideWasm,
51+
SendOutsideWasm, SyncOutsideWasm,
5252
};
5353
use ruma::{events::AnySyncStateEvent, push::Action, serde::Raw, OwnedRoomId};
5454
use serde::{de::DeserializeOwned, Deserialize};
@@ -509,7 +509,7 @@ macro_rules! impl_event_handler {
509509
impl<Ev, Fun, Fut, $($ty),*> EventHandler<Ev, ($($ty,)*)> for Fun
510510
where
511511
Ev: SyncEvent,
512-
Fun: FnOnce(Ev, $($ty),*) -> Fut + Clone + Send + Sync + 'static,
512+
Fun: FnOnce(Ev, $($ty),*) -> Fut + Clone + SendOutsideWasm + SyncOutsideWasm + 'static,
513513
Fut: EventHandlerFuture,
514514
$($ty: EventHandlerContext),*
515515
{

0 commit comments

Comments
 (0)