Start ephemeral timer when seen status is synchronized via imap

This commit is contained in:
link2xt
2022-03-11 23:21:59 +00:00
parent 74ac9c3a92
commit e48eef7e32
3 changed files with 32 additions and 0 deletions

View File

@@ -2015,6 +2015,12 @@ async fn mark_seen_by_uid(
> 0;
if updated {
msg_id
.start_ephemeral_timer(context)
.await
.with_context(|| {
format!("failed to start ephemeral timer for message {}", msg_id)
})?;
Ok(Some(chat_id))
} else {
// Message state has not chnaged.