FEATURE: unified user menu notifications count (#18132)

Each new user menu notifications should have their own count. Therefore, we need to include all types to serializer and not only `grouped_unread_high_priority_notifications`

Additional PR will be created for chat and assign plugin, as they will have to switch to  `grouped_unread_notifications` as well.
This commit is contained in:
Krzysztof Kotlarek
2022-08-31 11:16:28 +10:00
committed by GitHub
parent 2e00d4d024
commit de8cd19438
13 changed files with 81 additions and 30 deletions

View File

@@ -77,7 +77,7 @@ class CurrentUserSerializer < BasicUserSerializer
:status,
:sidebar_category_ids,
:likes_notifications_disabled,
:grouped_unread_high_priority_notifications,
:grouped_unread_notifications,
:redesigned_user_menu_enabled
delegate :user_stat, to: :object, private: true
@@ -338,7 +338,7 @@ class CurrentUserSerializer < BasicUserSerializer
redesigned_user_menu_enabled
end
def include_grouped_unread_high_priority_notifications?
def include_grouped_unread_notifications?
redesigned_user_menu_enabled
end