Skip to content

Commit 5d6cc29

Browse files
committed
fixup! refactor(indexeddb): add migrations and types for media last access index
Signed-off-by: Michael Goldenberg <[email protected]>
1 parent 1c2efb0 commit 5d6cc29

File tree

1 file changed

+3
-1
lines changed
  • crates/matrix-sdk-indexeddb/src/event_cache_store/serializer

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -953,10 +953,12 @@ pub struct IndexedMedia {
953953
/// The size (in bytes) of the media content and whether to ignore the
954954
/// [`MediaRetentionPolicy`]
955955
pub content_size: IndexedMediaContentSizeKey,
956+
/// The last time the media was accessed and whether to ignore the
957+
/// [`MediaRetentionPolicy`]
958+
pub last_access: IndexedMediaLastAccessKey,
956959
/// The (possibly) encrypted metadata - i.e., [`MediaMetadata`][1]
957960
///
958961
/// [1]: crate::event_cache_store::types::MediaMetadata
959-
pub last_access: IndexedMediaLastAccessKey,
960962
pub metadata: IndexedMediaMetadata,
961963
/// The (possibly) encrypted content - i.e., [`Media::content`]
962964
pub content: IndexedMediaContent,

0 commit comments

Comments
 (0)