mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
Always schedule next ephemeral task after message deletion
If no messages were deleted, it means the task was scheduled earlier then needed and should be rescheduled.
This commit is contained in:
committed by
link2xt
parent
d4dea0d5c6
commit
6050f0e2a1
@@ -321,9 +321,7 @@ pub(crate) async fn delete_expired_messages(context: &Context) -> Result<bool, E
|
||||
updated |= rows_modified > 0;
|
||||
}
|
||||
|
||||
if updated {
|
||||
schedule_ephemeral_task(context).await;
|
||||
}
|
||||
schedule_ephemeral_task(context).await;
|
||||
Ok(updated)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user