mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 17:36:29 +03:00
remove now superfluous interrupting on watch-settings-changes
This commit is contained in:
@@ -11,7 +11,7 @@ use crate::dc_tools::*;
|
|||||||
use crate::events::Event;
|
use crate::events::Event;
|
||||||
use crate::message::MsgId;
|
use crate::message::MsgId;
|
||||||
use crate::mimefactory::RECOMMENDED_FILE_SIZE;
|
use crate::mimefactory::RECOMMENDED_FILE_SIZE;
|
||||||
use crate::{scheduler::InterruptInfo, stock::StockMessage};
|
use crate::stock::StockMessage;
|
||||||
|
|
||||||
/// The available configuration keys.
|
/// The available configuration keys.
|
||||||
#[derive(
|
#[derive(
|
||||||
@@ -201,22 +201,6 @@ impl Context {
|
|||||||
None => self.sql.set_raw_config(self, key, None).await,
|
None => self.sql.set_raw_config(self, key, None).await,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Config::InboxWatch => {
|
|
||||||
let ret = self.sql.set_raw_config(self, key, value).await;
|
|
||||||
self.interrupt_inbox(InterruptInfo::new(false, None)).await;
|
|
||||||
ret
|
|
||||||
}
|
|
||||||
Config::SentboxWatch => {
|
|
||||||
let ret = self.sql.set_raw_config(self, key, value).await;
|
|
||||||
self.interrupt_sentbox(InterruptInfo::new(false, None))
|
|
||||||
.await;
|
|
||||||
ret
|
|
||||||
}
|
|
||||||
Config::MvboxWatch => {
|
|
||||||
let ret = self.sql.set_raw_config(self, key, value).await;
|
|
||||||
self.interrupt_mvbox(InterruptInfo::new(false, None)).await;
|
|
||||||
ret
|
|
||||||
}
|
|
||||||
Config::Selfstatus => {
|
Config::Selfstatus => {
|
||||||
let def = self.stock_str(StockMessage::StatusLine).await;
|
let def = self.stock_str(StockMessage::StatusLine).await;
|
||||||
let val = if value.is_none() || value.unwrap() == def {
|
let val = if value.is_none() || value.unwrap() == def {
|
||||||
|
|||||||
@@ -38,14 +38,6 @@ impl Context {
|
|||||||
self.scheduler.read().await.interrupt_inbox(info).await;
|
self.scheduler.read().await.interrupt_inbox(info).await;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) async fn interrupt_sentbox(&self, info: InterruptInfo) {
|
|
||||||
self.scheduler.read().await.interrupt_sentbox(info).await;
|
|
||||||
}
|
|
||||||
|
|
||||||
pub(crate) async fn interrupt_mvbox(&self, info: InterruptInfo) {
|
|
||||||
self.scheduler.read().await.interrupt_mvbox(info).await;
|
|
||||||
}
|
|
||||||
|
|
||||||
pub(crate) async fn interrupt_smtp(&self, info: InterruptInfo) {
|
pub(crate) async fn interrupt_smtp(&self, info: InterruptInfo) {
|
||||||
self.scheduler.read().await.interrupt_smtp(info).await;
|
self.scheduler.read().await.interrupt_smtp(info).await;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user