2024-07-18 14:36:09 +00:00
|
|
|
import { createAppAsyncThunk } from 'mastodon/store';
|
|
|
|
|
|
|
|
import { fetchNotifications } from './notification_groups';
|
|
|
|
|
|
|
|
export const initializeNotifications = createAppAsyncThunk(
|
|
|
|
'notifications/initialize',
|
2024-09-16 13:12:10 +00:00
|
|
|
(_, { dispatch }) => {
|
|
|
|
void dispatch(fetchNotifications());
|
2024-07-18 14:36:09 +00:00
|
|
|
},
|
|
|
|
);
|