From 013408ed27dc3c077f8731b936d17e604d61f95c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Mart=C3=ADn?= Date: Tue, 17 Dec 2024 12:15:47 +0100 Subject: [PATCH] Try fixing wasm target --- crates/matrix-sdk/src/room/mod.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/crates/matrix-sdk/src/room/mod.rs b/crates/matrix-sdk/src/room/mod.rs index 8eb2bbb321..2511bbf83c 100644 --- a/crates/matrix-sdk/src/room/mod.rs +++ b/crates/matrix-sdk/src/room/mod.rs @@ -47,7 +47,11 @@ use matrix_sdk_base::{ ComposerDraft, RoomInfoNotableUpdateReasons, RoomMemberships, StateChanges, StateStoreDataKey, StateStoreDataValue, }; -use matrix_sdk_common::{deserialized_responses::SyncTimelineEvent, timeout::timeout}; +use matrix_sdk_common::{ + deserialized_responses::SyncTimelineEvent, + executor::{spawn, JoinHandle}, + timeout::timeout, +}; use mime::Mime; #[cfg(feature = "e2e-encryption")] use ruma::events::{ @@ -117,7 +121,7 @@ use ruma::{ }; use serde::de::DeserializeOwned; use thiserror::Error; -use tokio::{sync::broadcast, task::JoinHandle}; +use tokio::sync::broadcast; use tokio_stream::StreamExt; use tracing::{debug, info, instrument, warn}; @@ -3246,7 +3250,7 @@ impl Room { // Spawn a task that will clean up the seen knock request ids when updated room // members are received - let clear_seen_ids_handle = tokio::spawn({ + let clear_seen_ids_handle = spawn({ let this = this.clone(); async move { let mut member_updates_stream = this.room_member_updates_sender.subscribe();