add iOS communication notifications for chat with sender avatars
Uses INSendMessageIntent to display sender profile pictures in DM notifications. The NSE downloads the avatar thumbnail and creates a Communication Notification, falling back gracefully if the download fails or the avatar URL is absent. Also adds chat-reaction support to the notification handler on both iOS and Android. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -13,7 +13,7 @@ class BackgroundNotificationHandler(
|
||||
return
|
||||
}
|
||||
|
||||
if (remoteMessage.data["reason"] == "chat-message") {
|
||||
if (remoteMessage.data["reason"] == "chat-message" || remoteMessage.data["reason"] == "chat-reaction") {
|
||||
mutateWithChatMessage(remoteMessage)
|
||||
} else {
|
||||
mutateWithOtherReason(remoteMessage)
|
||||
|
||||
Reference in New Issue
Block a user