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:
Hocuri
2021-01-30 20:30:18 +01:00
parent 6bb0c164f9
commit e820d072f5
3 changed files with 6 additions and 1 deletions

View File

@@ -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))