refactor(indexeddb): re-type IndexedRoomId and IndexedEventId as String for compatibility with SafeEncode

Signed-off-by: Michael Goldenberg <m@mgoldenberg.net>
This commit is contained in:
Michael Goldenberg
2025-06-08 20:56:45 -04:00
committed by Ivan Enderlin
parent 0ad4df2031
commit 717116cc05

View File

@@ -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: