mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-15 21:45:19 +00:00
Use Int32(exactly:)
This commit is contained in:
parent
3f013d9448
commit
72340244c6
@ -162,7 +162,7 @@ final class MediaPickerGridItemNode: GridItemNode {
|
|||||||
} else if let (fetchResult, index) = self.currentState {
|
} else if let (fetchResult, index) = self.currentState {
|
||||||
let asset = fetchResult.object(at: index)
|
let asset = fetchResult.object(at: index)
|
||||||
if let localTimestamp = asset.creationDate?.timeIntervalSince1970 {
|
if let localTimestamp = asset.creationDate?.timeIntervalSince1970 {
|
||||||
let tag = Month(localTimestamp: Int32(localTimestamp)).packedValue
|
let tag = Month(localTimestamp: Int32(exactly: floor(localTimestamp)) ?? 0).packedValue
|
||||||
self._cachedTag = tag
|
self._cachedTag = tag
|
||||||
return tag
|
return tag
|
||||||
} else {
|
} else {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"app": "9.6.2",
|
"app": "9.6.3",
|
||||||
"bazel": "6.1.1",
|
"bazel": "6.1.1",
|
||||||
"xcode": "14.2"
|
"xcode": "14.2"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user