Add a specific notification body for space invites. (#4808)

This commit is contained in:
Doug
2025-12-02 17:07:03 +00:00
committed by GitHub
parent d545a2b904
commit 2556eccc29
7 changed files with 24 additions and 8 deletions
+7 -8
View File
@@ -99,15 +99,14 @@ struct NotificationContentBuilder {
notificationItem: NotificationItemProxyProtocol,
mediaProvider: MediaProviderProtocol) async {
notificationContent.categoryIdentifier = NotificationConstants.Category.invite
let body: String
if !notificationItem.isDM {
body = L10n.notificationRoomInviteBody
} else {
body = L10n.notificationInviteBody
}
notificationContent.body = body
notificationContent.body = if notificationItem.isDM {
L10n.notificationInviteBody
} else if notificationItem.isRoomSpace {
L10n.notificationSpaceInviteBody
} else {
L10n.notificationRoomInviteBody
}
let name = notificationItem.senderDisplayName ?? notificationItem.roomDisplayName
await addCommunicationContext(notificationContent: &notificationContent,