mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 15:36:30 +03:00
Disable moving to Sentbox for now
fix https://github.com/deltachat/deltachat-core-rust/issues/2176 we can re-enable it when DC determines automatically which folders to watch and this is deployed for at least 1 release.
This commit is contained in:
@@ -63,6 +63,9 @@ pub enum Config {
|
||||
#[strum(props(default = "1"))]
|
||||
MvboxMove,
|
||||
|
||||
#[strum(props(default = "0"))]
|
||||
SentboxMove, // If `MvboxMove` is true, this config is ignored. Currently only used in tests.
|
||||
|
||||
#[strum(props(default = "0"))] // also change ShowEmails.default() on changes
|
||||
ShowEmails,
|
||||
|
||||
|
||||
@@ -119,6 +119,7 @@ impl MsgId {
|
||||
&& !msg.is_setupmessage()
|
||||
&& msg.to_id != DC_CONTACT_ID_SELF // Leave self-chat-messages in the inbox, not sure about this
|
||||
&& context.is_inbox(folder).await
|
||||
&& context.get_config_bool(SentboxMove).await
|
||||
&& context.get_config(ConfiguredSentboxFolder).await.is_some()
|
||||
{
|
||||
Ok(Some(ConfiguredSentboxFolder))
|
||||
|
||||
Reference in New Issue
Block a user