db functions to delete media via MXC

Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
strawberry 2024-02-21 20:34:11 -05:00 committed by June
parent cc762c49e2
commit 27c29e6063
3 changed files with 58 additions and 1 deletions

View file

@ -10,6 +10,8 @@ pub trait Data: Send + Sync {
content_type: Option<&str>,
) -> Result<Vec<u8>>;
fn delete_file_mxc(&self, mxc: String) -> Result<()>;
/// Returns content_disposition, content_type and the metadata key.
fn search_file_metadata(
&self,