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
parent 68a4dd43c3
commit 77c6ffa592
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,