mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-01 22:56:33 +02:00
Remote wipe logic
This commit is contained in:
@@ -2015,8 +2015,12 @@ public class Log {
|
||||
Map<String, ?> settings = prefs.getAll();
|
||||
List<String> keys = new ArrayList<>(settings.keySet());
|
||||
Collections.sort(keys);
|
||||
for (String key : keys)
|
||||
size += write(os, key + "=" + settings.get(key) + "\r\n");
|
||||
for (String key : keys) {
|
||||
Object value = settings.get(key);
|
||||
if ("wipe_mnemonic".equals(key) && value != null)
|
||||
value = "[redacted]";
|
||||
size += write(os, key + "=" + value + "\r\n");
|
||||
}
|
||||
}
|
||||
|
||||
db.attachment().setDownloaded(attachment.id, size);
|
||||
|
||||
Reference in New Issue
Block a user