From 1de8819d9d00adcb6e7ed4fccbe7e0a88984b8d8 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Fri, 22 May 2026 17:03:56 +0300 Subject: [PATCH] Match renamed push payload fields from chat service Server-side renamed `convoGroupName` -> `groupName` and `convoMemberCount` -> `groupMemberCount` in the additional payload. Co-Authored-By: Claude Opus 4.7 (1M context) --- modules/BlueskyNSE/NotificationService.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/BlueskyNSE/NotificationService.swift b/modules/BlueskyNSE/NotificationService.swift index 46e9b85740..3f40999cfd 100644 --- a/modules/BlueskyNSE/NotificationService.swift +++ b/modules/BlueskyNSE/NotificationService.swift @@ -104,7 +104,7 @@ class NotificationService: UNNotificationServiceExtension { var speakableGroupName: INSpeakableString? = nil if userInfo["convoKind"] as? String == "group", - let groupName = userInfo["convoGroupName"] as? String, + let groupName = userInfo["groupName"] as? String, !groupName.isEmpty { speakableGroupName = INSpeakableString(spokenPhrase: groupName) } @@ -126,10 +126,10 @@ class NotificationService: UNNotificationServiceExtension { // `recipientCount` on the donation metadata is Apple's documented escape // hatch for this case, and overrides the (zero-length) recipients array. if userInfo["convoKind"] as? String == "group", - let convoMemberCount = userInfo["convoMemberCount"] as? Int, - convoMemberCount > 0 { + let groupMemberCount = userInfo["groupMemberCount"] as? Int, + groupMemberCount > 0 { let metadata = INSendMessageIntentDonationMetadata() - metadata.recipientCount = convoMemberCount + metadata.recipientCount = groupMemberCount intent.donationMetadata = metadata } @@ -209,7 +209,7 @@ class NotificationService: UNNotificationServiceExtension { userInfo: [AnyHashable: Any] ) { guard userInfo["convoKind"] as? String == "group", - let groupName = userInfo["convoGroupName"] as? String, + let groupName = userInfo["groupName"] as? String, !groupName.isEmpty else { return }