File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
crates/matrix-sdk-indexeddb/src/event_cache_store/serializer Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -956,6 +956,9 @@ pub struct IndexedMedia {
956
956
/// The last time the media was accessed and whether to ignore the
957
957
/// [`MediaRetentionPolicy`]
958
958
pub last_access : IndexedMediaLastAccessKey ,
959
+ /// The last the media was accessed, the size (in bytes) of the media
960
+ /// content, and whether to ignore the [`MediaRetentionPolicy`]
961
+ pub retention_metadata : IndexedMediaRetentionMetadataKey ,
959
962
/// The (possibly) encrypted metadata - i.e., [`MediaMetadata`][1]
960
963
///
961
964
/// [1]: crate::event_cache_store::types::MediaMetadata
@@ -1002,6 +1005,10 @@ impl Indexed for Media {
1002
1005
( self . metadata . ignore_policy , self . metadata . last_access ) ,
1003
1006
serializer,
1004
1007
) ,
1008
+ retention_metadata : IndexedMediaRetentionMetadataKey :: encode (
1009
+ ( self . metadata . ignore_policy , self . metadata . last_access , content. len ( ) ) ,
1010
+ serializer,
1011
+ ) ,
1005
1012
metadata : serializer. maybe_encrypt_value ( & self . metadata ) ?,
1006
1013
content,
1007
1014
} )
You can’t perform that action at this time.
0 commit comments