Skip to content

Commit

Permalink
Notifications: Fix content for Course-Wide general channel notifica…
Browse files Browse the repository at this point in the history
…tions (#77)
  • Loading branch information
anian03 authored Sep 10, 2024
1 parent 6e2361b commit 4c8d22a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/PushNotifications/Models/PushNotification.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 4c8d22a

Please sign in to comment.