Start ephemeral timers during housekeeping

This commit is contained in:
Alexander Krotov
2020-07-07 22:41:03 +03:00
committed by link2xt
parent bb9603661a
commit 1b5d08e6ee
2 changed files with 39 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ use crate::chat::{update_device_icon, update_saved_messages_icon};
use crate::constants::{ShowEmails, DC_CHAT_ID_TRASH};
use crate::context::Context;
use crate::dc_tools::*;
use crate::ephemeral::start_ephemeral_timers;
use crate::param::*;
use crate::peerstate::*;
@@ -568,6 +569,13 @@ pub async fn housekeeping(context: &Context) {
}
}
if let Err(err) = start_ephemeral_timers(context).await {
warn!(
context,
"Housekeeping: cannot start ephemeral timers: {}", err
);
}
if let Err(err) = prune_tombstones(context).await {
warn!(
context,