Skip to content

Commit 02cfee6

Browse files
committed
feat(sdk): SlidingSyncRoom is cheap to clone.
This patch changes `SlidingSyncRoom` to move all its fields inside an inner type `SlidingSyncRoom` behind an `Arc`, so that cloning is cheap, and all clones are sharing the same state.
1 parent 09bb0fc commit 02cfee6

File tree

2 files changed

+343
-211
lines changed

2 files changed

+343
-211
lines changed

crates/matrix-sdk/src/sliding_sync/list/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ use tracing::{instrument, warn};
2828
use super::{Error, SlidingSyncInternalMessage};
2929
use crate::Result;
3030

31-
/// Holding a specific filtered list within the concept of sliding sync.
31+
/// Holding a specific filtered list within the concept of Sliding Sync.
3232
///
3333
/// It is OK to clone this type as much as you need: cloning it is cheap.
3434
#[derive(Clone, Debug)]

0 commit comments

Comments
 (0)