mirror of
https://github.com/chatmail/core.git
synced 2026-05-08 01:16:31 +03:00
Do not interrupt inbox when a moved message is detected
Interrupting inbox task causes fetch on the inbox. There is nothing to fetch on the inbox when a message was just moved to movebox, possibly by another device.
This commit is contained in:
@@ -1402,10 +1402,7 @@ async fn precheck_imf(
|
|||||||
|
|
||||||
if old_server_folder != server_folder || old_server_uid != server_uid {
|
if old_server_folder != server_folder || old_server_uid != server_uid {
|
||||||
update_server_uid(context, rfc724_mid, server_folder, server_uid).await;
|
update_server_uid(context, rfc724_mid, server_folder, server_uid).await;
|
||||||
context
|
info!(context, "Updating server_uid")
|
||||||
.interrupt_inbox(InterruptInfo::new(false, Some(msg_id)))
|
|
||||||
.await;
|
|
||||||
info!(context, "Updating server_uid and interrupting")
|
|
||||||
}
|
}
|
||||||
Ok(true)
|
Ok(true)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user