fix: do not allow sync item timestamps to be in the future

This commit is contained in:
link2xt
2025-09-13 06:19:59 +00:00
parent 2481a0f48e
commit afc74b0829
2 changed files with 14 additions and 5 deletions

View File

@@ -854,7 +854,9 @@ pub(crate) async fn receive_imf_inner(
if let Some(ref sync_items) = mime_parser.sync_items {
if from_id == ContactId::SELF {
if mime_parser.was_encrypted() {
context.execute_sync_items(sync_items).await;
context
.execute_sync_items(sync_items, mime_parser.timestamp_sent)
.await;
} else {
warn!(context, "Sync items are not encrypted.");
}