From 4c8d22aa11e55e3eba61899bac93763688c5693b Mon Sep 17 00:00:00 2001 From: Anian Schleyer <98647423+anian03@users.noreply.github.com> Date: Tue, 10 Sep 2024 17:20:26 +0200 Subject: [PATCH] `Notifications`: Fix content for Course-Wide general channel notifications (#77) --- Sources/PushNotifications/Models/PushNotification.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/PushNotifications/Models/PushNotification.swift b/Sources/PushNotifications/Models/PushNotification.swift index 9dcae61..38c2dd6 100644 --- a/Sources/PushNotifications/Models/PushNotification.swift +++ b/Sources/PushNotifications/Models/PushNotification.swift @@ -239,8 +239,8 @@ public enum PushNotificationType: String, Codable { case .newReplyForCoursePost: guard notificationPlaceholders.count > 5 else { return nil } return R.string.localizable.artemisAppGroupNotificationTextNewReplyForCoursePost(notificationPlaceholders[0], - notificationPlaceholders[4], - notificationPlaceholders[5]) + notificationPlaceholders[3], + notificationPlaceholders[4]) case .newReplyForExamPost: return nil case .newReplyForExercisePost: @@ -259,11 +259,11 @@ public enum PushNotificationType: String, Codable { case .newAnnouncementPost: guard notificationPlaceholders.count > 2 else { return nil } return R.string.localizable.artemisAppGroupNotificationTextNewAnnouncementPost(notificationPlaceholders[0], - notificationPlaceholders[2]) + notificationPlaceholders[1]) case .newCoursePost: guard notificationPlaceholders.count > 2 else { return nil } return R.string.localizable.artemisAppGroupNotificationTextNewCoursePost(notificationPlaceholders[0], - notificationPlaceholders[2]) + notificationPlaceholders[1]) case .newExamPost: return nil case .newExercisePost: