From 717116cc0517d2569728ad4e0bb5a04bfbd2d259 Mon Sep 17 00:00:00 2001 From: Michael Goldenberg Date: Sun, 8 Jun 2025 20:56:45 -0400 Subject: [PATCH] refactor(indexeddb): re-type IndexedRoomId and IndexedEventId as String for compatibility with SafeEncode Signed-off-by: Michael Goldenberg --- .../src/event_cache_store/serializer/types.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 6ec1fb277..7fea0ff15 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 @@ -55,7 +55,7 @@ pub struct IndexedChunk { #[derive(Debug, Serialize, Deserialize)] pub struct IndexedChunkIdKey(IndexedRoomId, IndexedChunkId); -pub type IndexedRoomId = MaybeEncrypted; +pub type IndexedRoomId = String; pub type IndexedChunkId = String; pub type IndexedChunkContent = MaybeEncrypted; @@ -86,7 +86,7 @@ pub struct IndexedEvent { #[derive(Debug, Serialize, Deserialize)] pub struct IndexedEventIdKey(IndexedRoomId, IndexedEventId); -pub type IndexedEventId = MaybeEncrypted; +pub type IndexedEventId = String; /// The value associated with the [`position`](IndexedEvent::position) index of /// the [`EVENTS`][1] object store, which is constructed from: