File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
crates/matrix-sdk/src/event_cache Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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,
You can’t perform that action at this time.
0 commit comments