mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Search filter fixes
This commit is contained in:
@@ -106,11 +106,13 @@ func suggestDates(for string: String, strings: PresentationStrings, dateTimeForm
|
||||
if stringComponents.count < 3 {
|
||||
for i in 0..<5 {
|
||||
if let date = calendar.date(byAdding: .year, value: -i, to: resultDate), date < now {
|
||||
result.append((nil, date, nil))
|
||||
let lowerDate = getLowerDate(for: resultDate)
|
||||
result.append((lowerDate, date, nil))
|
||||
}
|
||||
}
|
||||
} else if resultDate < now {
|
||||
result.append((nil, resultDate, nil))
|
||||
let lowerDate = getLowerDate(for: resultDate)
|
||||
result.append((lowerDate, resultDate, nil))
|
||||
}
|
||||
}
|
||||
let dd = try NSDataDetector(types: NSTextCheckingResult.CheckingType.date.rawValue)
|
||||
|
||||
Reference in New Issue
Block a user