mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Roll back fix overflow
This commit is contained in:
parent
49192871e1
commit
2e2fbe6b71
@ -14,9 +14,7 @@ public class AutoremoveTimeoutMessageAttribute: MessageAttribute {
|
|||||||
self.countdownBeginTime = countdownBeginTime
|
self.countdownBeginTime = countdownBeginTime
|
||||||
|
|
||||||
if let countdownBeginTime = countdownBeginTime {
|
if let countdownBeginTime = countdownBeginTime {
|
||||||
let result = Int64(countdownBeginTime) + Int64(timeout)
|
self.automaticTimestampBasedAttribute = (0, countdownBeginTime + timeout)
|
||||||
|
|
||||||
self.automaticTimestampBasedAttribute = (0, Int32(min(result, Int64(Int32.max - 1))))
|
|
||||||
} else {
|
} else {
|
||||||
self.automaticTimestampBasedAttribute = nil
|
self.automaticTimestampBasedAttribute = nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user