Skip to content

Commit b13c1fa

Browse files
committed
fixup
1 parent 2744c28 commit b13c1fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/matrix-sdk/src/event_cache/redecryptor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ impl EventCache {
280280
// Get the cache for this particular room and lock the state for the duration of
281281
// the decryption.
282282
let (room_cache, _drop_handles) = self.for_room(room_id).await?;
283-
let mut state = room_cache.inner.state.write().await;
283+
let mut state = room_cache.inner.state.write().await?;
284284

285285
let event_ids: BTreeSet<_> =
286286
events.iter().cloned().map(|(event_id, _, _)| event_id).collect();
@@ -308,7 +308,7 @@ impl EventCache {
308308

309309
// We replaced a bunch of events, reactive updates for those replacements have
310310
// been queued up. We need to send them out to our subscribers now.
311-
let diffs = state.room_linked_chunk_mut().updates_as_vector_diffs();
311+
let diffs = state.room_linked_chunk().updates_as_vector_diffs();
312312

313313
let _ = room_cache.inner.sender.send(RoomEventCacheUpdate::UpdateTimelineEvents {
314314
diffs,

0 commit comments

Comments
 (0)