mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Skip past dates
This commit is contained in:
parent
8def1683b9
commit
83669124c9
1 changed files with 1 additions and 1 deletions
|
|
@ -298,7 +298,7 @@ public func generateTextEntities(_ text: String, enabledTypes: EnabledEntityType
|
|||
}
|
||||
|
||||
type = .Url
|
||||
} else if result.resultType == NSTextCheckingResult.CheckingType.date, let date = result.date?.timeIntervalSince1970 {
|
||||
} else if result.resultType == NSTextCheckingResult.CheckingType.date, let date = result.date?.timeIntervalSince1970, date > Date().timeIntervalSince1970 {
|
||||
#if DEBUG
|
||||
var dayOfWeek = false
|
||||
var format: MessageTextEntityType.DateTimeFormat?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue