1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-31 20:25:38 +00:00

Use contact data for syn days before account creation

This commit is contained in:
M66B 2021-04-25 12:08:33 +02:00
parent f377f6ba89
commit c4485d587a

View file

@ -727,7 +727,8 @@ public class ContactInfo {
static void update(
Context context, EntityAccount account, final EntityFolder folder, final EntityMessage message) {
if (message.received < account.created)
long sync_time = (folder.sync_days == Integer.MAX_VALUE ? 0 : folder.sync_days) * 24 * 3600 * 1000L;
if (message.received < account.created - sync_time)
return;
if (EntityFolder.DRAFTS.equals(folder.type) ||