Remove old notifications actions and reducers (#31843)

This commit is contained in:
Claire 2025-01-03 17:12:08 +01:00 committed by GitHub
parent 535866218e
commit 7d6da219c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 7 additions and 451 deletions

View file

@ -3,7 +3,7 @@ import { defineMessages, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import { openModal } from 'mastodon/actions/modal';
import { initializeNotifications } from 'mastodon/actions/notifications_migration';
import { fetchNotifications } from 'mastodon/actions/notification_groups';
import { showAlert } from '../../../actions/alerts';
import { setFilter, requestBrowserPermission } from '../../../actions/notifications';
@ -60,7 +60,7 @@ const mapDispatchToProps = (dispatch) => ({
dispatch(changeSetting(['notifications', ...path], checked));
if(path[0] === 'group' && path[1] === 'follow') {
dispatch(initializeNotifications());
dispatch(fetchNotifications());
}
}
},