Various fixes

This commit is contained in:
Ilya Laktyushin 2026-05-14 19:06:03 +02:00 committed by isaac
parent 21d5b4879b
commit c9a9f8a060

View file

@ -1286,9 +1286,9 @@ private final class NotificationServiceHandler {
action = .pollStories(peerId: peerId, content: content, storyId: storyId, isReaction: isReaction)
} else {
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)
if reportDeliveryUntilDate > currentTime {
if reportDeliveryUntilDateValue > currentTime {
reportDelivery = true
}
}