From d34830b2d684bb0af8f0b93bb91beecf74ba1cde Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Tue, 12 May 2026 14:10:36 +0200 Subject: [PATCH] chore(sdk,ui): Fix typos. --- crates/matrix-sdk-ui/src/timeline/controller/mod.rs | 2 +- crates/matrix-sdk/src/event_cache/caches/mod.rs | 2 +- crates/matrix-sdk/src/event_cache/caches/thread/state.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/matrix-sdk-ui/src/timeline/controller/mod.rs b/crates/matrix-sdk-ui/src/timeline/controller/mod.rs index 989262e41..ab875b939 100644 --- a/crates/matrix-sdk-ui/src/timeline/controller/mod.rs +++ b/crates/matrix-sdk-ui/src/timeline/controller/mod.rs @@ -391,7 +391,7 @@ impl TimelineController

{ } TimelineFocus::Thread { root_event_id, .. } => TimelineFocusKind::Thread { - event_cache: event_cache.thread(room_id, &root_event_id).await?.0, + event_cache: event_cache.thread(room_id, root_event_id).await?.0, root_event_id: root_event_id.clone(), }, diff --git a/crates/matrix-sdk/src/event_cache/caches/mod.rs b/crates/matrix-sdk/src/event_cache/caches/mod.rs index efa5f9c64..94d8f17ff 100644 --- a/crates/matrix-sdk/src/event_cache/caches/mod.rs +++ b/crates/matrix-sdk/src/event_cache/caches/mod.rs @@ -366,7 +366,7 @@ impl<'c> ResetCaches<'c> { ); } - // Now we can release the exclusive acces over the threads. + // Now we can release the exclusive access over the threads. drop(threads_lock); } diff --git a/crates/matrix-sdk/src/event_cache/caches/thread/state.rs b/crates/matrix-sdk/src/event_cache/caches/thread/state.rs index d55fe9446..a77ca7d67 100644 --- a/crates/matrix-sdk/src/event_cache/caches/thread/state.rs +++ b/crates/matrix-sdk/src/event_cache/caches/thread/state.rs @@ -342,7 +342,7 @@ impl<'a> ThreadEventCacheStateLockReadGuard<'a> { // // TODO(@hywan): This is inefficient. We are bending the `LatestEvent` API here. // Ultimately, we want to delegate the computation of `ThreadSummary` to - // `LatestEvent` instead of commiting crimes like these ones. + // `LatestEvent` instead of committing crimes like these ones. let mut latest_event_id = self .thread_linked_chunk() .revents()