Skip to content

Commit a22d592

Browse files
mgoldenbergHywan
authored andcommitted
refactor(indexeddb): add chunk identifier into gap type
Signed-off-by: Michael Goldenberg <m@mgoldenberg.net>
1 parent 1a32aa5 commit a22d592

File tree

1 file changed

+2
-0
lines changed
  • crates/matrix-sdk-indexeddb/src/event_cache_store

1 file changed

+2
-0
lines changed

crates/matrix-sdk-indexeddb/src/event_cache_store/types.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ impl From<matrix_sdk_base::linked_chunk::Position> for Position {
145145
/// which can be stored in IndexedDB.
146146
#[derive(Debug, Serialize, Deserialize)]
147147
pub struct Gap {
148+
/// The identifier of the chunk containing this gap.
149+
pub chunk_identifier: u64,
148150
/// The token to use in the query, extracted from a previous "from" /
149151
/// "end" field of a `/messages` response.
150152
pub prev_token: String,

0 commit comments

Comments
 (0)