diff --git a/crates/matrix-sdk-indexeddb/src/state_store/mod.rs b/crates/matrix-sdk-indexeddb/src/state_store/mod.rs index a8a469925fb..1380b475595 100644 --- a/crates/matrix-sdk-indexeddb/src/state_store/mod.rs +++ b/crates/matrix-sdk-indexeddb/src/state_store/mod.rs @@ -1495,10 +1495,11 @@ impl_state_store!({ .get_all()? .await? .into_iter() - .map(|item| { - self.deserialize_value(&item).map(|event: PersistedQueuedEvent| event.room_id) - }) - .collect::, _>>()?; + .map(|item| self.deserialize_value::>(&item)) + .collect::>, _>>()? + .into_iter() + .flat_map(|vec| vec.into_iter().map(|item| item.room_id)) + .collect::>(); Ok(all_entries.into_iter().collect()) }