From 2022e58adec2e4181ed9ce48750c553b095a9210 Mon Sep 17 00:00:00 2001
From: Tim Ortel <100865202+TimOrtel@users.noreply.github.com>
Date: Tue, 13 Jun 2023 11:48:57 +0200
Subject: [PATCH] Added conversation notification strings.
---
.../push/ui/PushNotificationSettingCategoriesListUi.kt | 3 +++
.../main/res/values/push_notification_settings_strings.xml | 4 ++++
2 files changed, 7 insertions(+)
diff --git a/feature/push/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/feature/push/ui/PushNotificationSettingCategoriesListUi.kt b/feature/push/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/feature/push/ui/PushNotificationSettingCategoriesListUi.kt
index ce4dbeebe..dba0c83e4 100644
--- a/feature/push/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/feature/push/ui/PushNotificationSettingCategoriesListUi.kt
+++ b/feature/push/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/feature/push/ui/PushNotificationSettingCategoriesListUi.kt
@@ -177,6 +177,7 @@ private fun getLocalizedNotificationGroupName(groupName: String): String {
"tutor-notification" -> R.string.push_notification_settings_group_tutorNotifications
"editor-notification" -> R.string.push_notification_settings_group_editorNotifications
"instructor-notification" -> R.string.push_notification_settings_group_instructorNotifications
+ "user-notification" -> R.string.push_notification_settings_group_conversationNotification
else -> null
}
@@ -205,6 +206,8 @@ private fun getLocalizedNotificationSettingName(settingName: String): String {
"tutorial-group-delete-update" -> R.string.push_notification_settings_setting_tutorialGroupUpdateDelete
"tutorial-group-assign-unassign" -> R.string.push_notification_settings_setting_assignUnassignTutorialGroup
"quiz_start_reminder" -> R.string.push_notification_settings_setting_quizStartReminder
+ "conversation-message" -> R.string.push_notification_setting_setting_newConversationMessages
+ "new-reply-in-conversation" -> R.string.push_notification_setting_setting_newConversationReplies
else -> null
}
diff --git a/feature/push/src/main/res/values/push_notification_settings_strings.xml b/feature/push/src/main/res/values/push_notification_settings_strings.xml
index 6d202b9cb..d78682c9e 100644
--- a/feature/push/src/main/res/values/push_notification_settings_strings.xml
+++ b/feature/push/src/main/res/values/push_notification_settings_strings.xml
@@ -22,6 +22,8 @@
Tutor Notifications
Editor Notifications
Instructor Notifications
+ Conversation Notifications
+
Basic Weekly Summary
Exercise released
@@ -42,6 +44,8 @@
Update and Delete of Tutorial Groups
Assign and Unassign of Tutorial Groups
Quiz start
+ New messages in conversations
+ New replies in conversations
Receive a basic weekly summary every Friday at 5pm (e.g. what new exercises have been released this week and are still open)"
Get notified when a new exercise has been released"