remove debug logging from NSE
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,10 +1,8 @@
|
|||||||
import UserNotifications
|
import UserNotifications
|
||||||
import UIKit
|
import UIKit
|
||||||
import Intents
|
import Intents
|
||||||
import os
|
|
||||||
|
|
||||||
let APP_GROUP = "group.app.bsky"
|
let APP_GROUP = "group.app.bsky"
|
||||||
private let logger = Logger(subsystem: "xyz.blueskyweb.app.BlueskyNSE", category: "NotificationService")
|
|
||||||
typealias ContentHandler = (UNNotificationContent) -> Void
|
typealias ContentHandler = (UNNotificationContent) -> Void
|
||||||
|
|
||||||
// This extension allows us to do some processing of the received notification
|
// This extension allows us to do some processing of the received notification
|
||||||
@@ -73,16 +71,9 @@ class NotificationService: UNNotificationServiceExtension {
|
|||||||
) -> UNNotificationContent {
|
) -> UNNotificationContent {
|
||||||
let senderDisplayName = userInfo["senderDisplayName"] as? String ?? "Unknown"
|
let senderDisplayName = userInfo["senderDisplayName"] as? String ?? "Unknown"
|
||||||
let convoId = userInfo["convoId"] as? String
|
let convoId = userInfo["convoId"] as? String
|
||||||
let avatarUrlString = userInfo["senderAvatarUrl"] as? String
|
|
||||||
|
|
||||||
logger.info("Communication notification: sender=\(senderDisplayName, privacy: .public) convoId=\(convoId ?? "nil", privacy: .public) avatarUrl=\(avatarUrlString ?? "nil", privacy: .public)")
|
|
||||||
|
|
||||||
var avatarImage: INImage? = nil
|
var avatarImage: INImage? = nil
|
||||||
if let avatarUrlString {
|
if let avatarUrlString = userInfo["senderAvatarUrl"] as? String {
|
||||||
avatarImage = downloadAvatarImage(from: avatarUrlString)
|
avatarImage = downloadAvatarImage(from: avatarUrlString)
|
||||||
logger.info("Avatar download result: \(avatarImage != nil ? "success" : "failed", privacy: .public)")
|
|
||||||
} else {
|
|
||||||
logger.info("No avatar URL in payload")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let senderHandle = INPersonHandle(value: nil, type: .unknown)
|
let senderHandle = INPersonHandle(value: nil, type: .unknown)
|
||||||
|
|||||||
Reference in New Issue
Block a user