mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-10 17:03:20 -04:00
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:
committed by
Ivan Enderlin
parent
0ad4df2031
commit
717116cc05
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user