abstract duration parsing into utils
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
4d42a29c51
commit
dea5fee6a3
6 changed files with 24 additions and 12 deletions
|
@ -176,6 +176,7 @@ pub(super) async fn delete_list(&self) -> Result<RoomMessageEventContent> {
|
|||
|
||||
#[admin_command]
|
||||
pub(super) async fn delete_past_remote_media(&self, duration: String, force: bool) -> Result<RoomMessageEventContent> {
|
||||
let duration = parse_timepoint_ago(&duration)?;
|
||||
let deleted_count = self
|
||||
.services
|
||||
.media
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue