mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 11:55:20 +01:00
Store older local contacts
This commit is contained in:
@@ -98,8 +98,10 @@ public class EntityContact implements Serializable {
|
||||
@NonNull EntityAccount account,
|
||||
@NonNull EntityFolder folder,
|
||||
@NonNull EntityMessage message) {
|
||||
long sync_time = (folder.sync_days == Integer.MAX_VALUE ? 0 : folder.sync_days) * 24 * 3600 * 1000L;
|
||||
if (message.received < account.created - sync_time)
|
||||
int days = (folder.isOutgoing() ? folder.keep_days : folder.sync_days);
|
||||
if (days == Integer.MAX_VALUE)
|
||||
days = EntityFolder.DEFAULT_KEEP;
|
||||
if (message.received < account.created - days * 24 * 3600 * 1000L)
|
||||
return;
|
||||
|
||||
if (EntityFolder.DRAFTS.equals(folder.type) ||
|
||||
|
||||
Reference in New Issue
Block a user