mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-05 19:28:46 +02:00
Various fixes
This commit is contained in:
parent
21d5b4879b
commit
c9a9f8a060
1 changed files with 2 additions and 2 deletions
|
|
@ -1286,9 +1286,9 @@ private final class NotificationServiceHandler {
|
||||||
action = .pollStories(peerId: peerId, content: content, storyId: storyId, isReaction: isReaction)
|
action = .pollStories(peerId: peerId, content: content, storyId: storyId, isReaction: isReaction)
|
||||||
} else {
|
} else {
|
||||||
var reportDelivery = false
|
var reportDelivery = false
|
||||||
if let reportDeliveryUntilDate = aps["report_delivery_until_date"] as? Int32 {
|
if let reportDeliveryUntilDate = aps["report_delivery_until_date"] as? String, let reportDeliveryUntilDateValue = Int32(reportDeliveryUntilDate) {
|
||||||
let currentTime = Int32(CFAbsoluteTimeGetCurrent() + kCFAbsoluteTimeIntervalSince1970)
|
let currentTime = Int32(CFAbsoluteTimeGetCurrent() + kCFAbsoluteTimeIntervalSince1970)
|
||||||
if reportDeliveryUntilDate > currentTime {
|
if reportDeliveryUntilDateValue > currentTime {
|
||||||
reportDelivery = true
|
reportDelivery = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue