mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
refactor(imap): do not get Session twice in fetch_new_messages()
This commit is contained in:
@@ -536,7 +536,6 @@ impl Imap {
|
||||
let uid_validity = get_uidvalidity(context, folder).await?;
|
||||
let old_uid_next = get_uid_next(context, folder).await?;
|
||||
|
||||
let session = self.session.as_mut().context("No IMAP session")?;
|
||||
let msgs = if fetch_existing_msgs {
|
||||
session
|
||||
.prefetch_existing_msgs()
|
||||
|
||||
Reference in New Issue
Block a user