Clear sensitive dispute data based on dispute opening date.

Change recommended setting for sensitive data clearing to 60 days.
This commit is contained in:
jmacxx 2022-02-25 09:49:36 -06:00 committed by Christoph Atteneder
parent 3bc096417e
commit a983e4a45e
No known key found for this signature in database
GPG key ID: CD5DC1C529CDFD3B
3 changed files with 3 additions and 3 deletions

View file

@ -307,7 +307,7 @@ public abstract class DisputeManager<T extends DisputeList<Dispute>> extends Sup
Instant safeDate = closedTradableManager.getSafeDateForSensitiveDataClearing();
getDisputeList().getList().stream()
.filter(e -> e.isClosed())
.filter(e -> e.getTradeDate().toInstant().isBefore(safeDate))
.filter(e -> e.getOpeningDate().toInstant().isBefore(safeDate))
.forEach(Dispute::maybeClearSensitiveData);
requestPersistence();
}

View file

@ -146,7 +146,7 @@ public final class Preferences implements PersistedDataHost, BridgeAddressProvid
public static final boolean USE_SYMMETRIC_SECURITY_DEPOSIT = true;
public static final int CLEAR_DATA_AFTER_DAYS_INITIAL = 99999; // feature effectively disabled until user agrees to settings notification
public static final int CLEAR_DATA_AFTER_DAYS_DEFAULT = 20; // used when user has agreed to settings notification
public static final int CLEAR_DATA_AFTER_DAYS_DEFAULT = 60; // used when user has agreed to settings notification
// payload is initialized so the default values are available for Property initialization.
@Setter

View file

@ -1393,7 +1393,7 @@ settings.preferences.sensitiveDataRemoval.msg=To protect the privacy of yourself
remove payment account details from old trades. This is particularly important for fiat trades which may include bank \
account details. Read more about this at [HYPERLINK:https://bisq.wiki/Data_Privacy].\n\n\
The threshold for data removal can be configured on this screen via the field "Clear sensitive data after (days)". \
It is recommended to set it as low as possible, for example 20 days. That means trades from more than 20 \
It is recommended to set it as low as possible, for example 60 days. That means trades from more than 60 \
days ago will have payment account details cleared, as long as they are finished. Finished trades are ones which \
are found in the Portfolio / History tab.