From c9a9f8a0609b35fd0784344dd9158c66534f6c0f Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Thu, 14 May 2026 19:06:03 +0200 Subject: [PATCH] Various fixes --- .../NotificationService/Sources/NotificationService.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/NotificationService/Sources/NotificationService.swift b/Telegram/NotificationService/Sources/NotificationService.swift index d52e425248..66f39d8a5b 100644 --- a/Telegram/NotificationService/Sources/NotificationService.swift +++ b/Telegram/NotificationService/Sources/NotificationService.swift @@ -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 } }