From b369345dc1f3a595c77690d92162f0e231b1988d Mon Sep 17 00:00:00 2001 From: Muhammad Adeel Tajamul <77053848+muhammadadeeltajamul@users.noreply.github.com> Date: Wed, 1 Jan 2025 14:17:44 +0500 Subject: [PATCH] fix: fixed notification generated event for grouped notifications (#36065) --- openedx/core/djangoapps/notifications/tasks.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openedx/core/djangoapps/notifications/tasks.py b/openedx/core/djangoapps/notifications/tasks.py index ddd690cf996b..a1792d27c3c9 100644 --- a/openedx/core/djangoapps/notifications/tasks.py +++ b/openedx/core/djangoapps/notifications/tasks.py @@ -185,6 +185,9 @@ def send_notifications(user_ids, course_key: str, app_name, notification_type, c ) if grouping_enabled and existing_notifications.get(user_id, None): group_user_notifications(new_notification, existing_notifications[user_id]) + if not notifications_generated: + notifications_generated = True + notification_content = new_notification.content else: notifications.append(new_notification) generated_notification_audience.append(user_id)