fix: fixed notification generated event for grouped notifications (#36065)

This commit is contained in:
Muhammad Adeel Tajamul
2025-01-01 14:17:44 +05:00
committed by GitHub
parent 953140aa1b
commit b369345dc1

View File

@@ -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)