@@ -68,10 +68,15 @@ function dispatchAssociatedRecords(
68
68
dispatch ( importFetchedStatuses ( fetchedStatuses ) ) ;
69
69
}
70
70
71
+ const supportedGroupedNotificationTypes = [ 'favourite' , 'reblog' ] ;
72
+
71
73
export const fetchNotifications = createDataLoadingThunk (
72
74
'notificationGroups/fetch' ,
73
75
async ( _params , { getState } ) =>
74
- apiFetchNotificationGroups ( { exclude_types : getExcludedTypes ( getState ( ) ) } ) ,
76
+ apiFetchNotificationGroups ( {
77
+ grouped_types : supportedGroupedNotificationTypes ,
78
+ exclude_types : getExcludedTypes ( getState ( ) ) ,
79
+ } ) ,
75
80
( { notifications, accounts, statuses } , { dispatch } ) => {
76
81
dispatch ( importFetchedAccounts ( accounts ) ) ;
77
82
dispatch ( importFetchedStatuses ( statuses ) ) ;
@@ -93,6 +98,7 @@ export const fetchNotificationsGap = createDataLoadingThunk(
93
98
'notificationGroups/fetchGap' ,
94
99
async ( params : { gap : NotificationGap } , { getState } ) =>
95
100
apiFetchNotificationGroups ( {
101
+ grouped_types : supportedGroupedNotificationTypes ,
96
102
max_id : params . gap . maxId ,
97
103
exclude_types : getExcludedTypes ( getState ( ) ) ,
98
104
} ) ,
@@ -109,6 +115,7 @@ export const pollRecentNotifications = createDataLoadingThunk(
109
115
'notificationGroups/pollRecentNotifications' ,
110
116
async ( _params , { getState } ) => {
111
117
return apiFetchNotificationGroups ( {
118
+ grouped_types : supportedGroupedNotificationTypes ,
112
119
max_id : undefined ,
113
120
exclude_types : getExcludedTypes ( getState ( ) ) ,
114
121
// In slow mode, we don't want to include notifications that duplicate the already-displayed ones
0 commit comments