mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
[WIP] Saved messages
This commit is contained in:
@@ -71,22 +71,24 @@ public func stringForMessageTimestampStatus(accountPeerId: PeerId, message: Mess
|
||||
}
|
||||
}
|
||||
|
||||
let timestamp: Int32
|
||||
var timestamp: Int32
|
||||
if let scheduleTime = message.scheduleTime {
|
||||
timestamp = scheduleTime
|
||||
} else {
|
||||
timestamp = message.timestamp
|
||||
}
|
||||
var dateText = stringForMessageTimestamp(timestamp: timestamp, dateTimeFormat: dateTimeFormat)
|
||||
if timestamp == scheduleWhenOnlineTimestamp {
|
||||
dateText = " "
|
||||
}
|
||||
|
||||
var displayFullDate = false
|
||||
if case .full = format, timestamp > 100000 {
|
||||
displayFullDate = true
|
||||
} else if let _ = message.forwardInfo, message.id.peerId == accountPeerId {
|
||||
} else if let forwardInfo = message.forwardInfo, message.id.peerId == accountPeerId {
|
||||
displayFullDate = true
|
||||
timestamp = forwardInfo.date
|
||||
}
|
||||
|
||||
var dateText = stringForMessageTimestamp(timestamp: timestamp, dateTimeFormat: dateTimeFormat)
|
||||
if timestamp == scheduleWhenOnlineTimestamp {
|
||||
dateText = " "
|
||||
}
|
||||
|
||||
if displayFullDate {
|
||||
|
||||
Reference in New Issue
Block a user