mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
committed by
GitHub
parent
2e00d4d024
commit
de8cd19438
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user