From b55e79fdacf85dec044aa9b11cb1ee450c2b75f2 Mon Sep 17 00:00:00 2001 From: Michael Goldenberg Date: Sun, 8 Jun 2025 21:01:35 -0400 Subject: [PATCH] refactor(indexeddb): re-type IndexedChunkId as u64 as IndexedDB supports numeric keys Signed-off-by: Michael Goldenberg --- .../src/event_cache_store/serializer/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/matrix-sdk-indexeddb/src/event_cache_store/serializer/types.rs b/crates/matrix-sdk-indexeddb/src/event_cache_store/serializer/types.rs index 7fea0ff15..8bbc9691d 100644 --- a/crates/matrix-sdk-indexeddb/src/event_cache_store/serializer/types.rs +++ b/crates/matrix-sdk-indexeddb/src/event_cache_store/serializer/types.rs @@ -56,7 +56,7 @@ pub struct IndexedChunk { pub struct IndexedChunkIdKey(IndexedRoomId, IndexedChunkId); pub type IndexedRoomId = String; -pub type IndexedChunkId = String; +pub type IndexedChunkId = u64; pub type IndexedChunkContent = MaybeEncrypted; /// Represents the [`EVENTS`][1] object store.