pl-fe: fix notification fetching on type change?

Signed-off-by: mkljczk <git@mkljczk.pl>
This commit is contained in:
mkljczk
2024-12-29 18:58:25 +01:00
parent c37c188b4b
commit a8b4257c31

View File

@ -190,10 +190,6 @@ const expandNotifications = ({ maxId }: Record<string, any> = {}, done: () => an
}
}
if (!maxId && notifications.items.length > 0) {
params.since_id = notifications.items[0]?.page_max_id;
}
dispatch(expandNotificationsRequest());
return getClient(state).groupedNotifications.getGroupedNotifications(params, { signal: abortExpandNotifications.signal }).then(({ items: { accounts, statuses, notification_groups }, next }) => {