Privacy: Auto-delete logs (no functionality yet)

This commit is contained in:
relikd
2020-06-28 14:20:31 +02:00
parent 43de81929f
commit 80afa6aff1
8 changed files with 231 additions and 120 deletions

View File

@@ -64,8 +64,8 @@ class VCDateFilter: UIViewController, UIGestureRecognizerDelegate {
@IBAction private func didTapRangeButton(_ sender: UIButton) {
let flag = (sender == buttonRangeStart)
let oldDate = flag ? Date(self.tsRangeA) : Date(self.tsRangeB)
DatePickerAlert(initial: oldDate).present(in: self) { (selected: Date) in
var ts = selected.timestamp
DatePickerAlert(initial: oldDate).present(in: self) {
var ts = $1.timestamp
ts -= ts % 60 // remove seconds
// if one of these is greater than the other, adjust the latter too.
if flag || self.tsRangeA > ts {