|
|
|
@ -31,7 +31,9 @@ import { NOTIFICATIONS_FILTER_SET } from './notifications';
|
|
|
|
import { saveSettings } from './settings';
|
|
|
|
import { saveSettings } from './settings';
|
|
|
|
|
|
|
|
|
|
|
|
function excludeAllTypesExcept(filter: string) {
|
|
|
|
function excludeAllTypesExcept(filter: string) {
|
|
|
|
return allNotificationTypes.filter((item) => item !== filter);
|
|
|
|
return allNotificationTypes.filter(
|
|
|
|
|
|
|
|
(item) => item !== filter && !(item === 'quote' && filter === 'mention'),
|
|
|
|
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function getExcludedTypes(state: RootState) {
|
|
|
|
function getExcludedTypes(state: RootState) {
|
|
|
|
@ -156,7 +158,8 @@ export const processNewNotificationForGroups = createAppAsyncThunk(
|
|
|
|
const showInColumn =
|
|
|
|
const showInColumn =
|
|
|
|
activeFilter === 'all'
|
|
|
|
activeFilter === 'all'
|
|
|
|
? notificationShows[notification.type] !== false
|
|
|
|
? notificationShows[notification.type] !== false
|
|
|
|
: activeFilter === notification.type;
|
|
|
|
: activeFilter === notification.type ||
|
|
|
|
|
|
|
|
(activeFilter === 'mention' && notification.type === 'quote');
|
|
|
|
|
|
|
|
|
|
|
|
if (!showInColumn) return;
|
|
|
|
if (!showInColumn) return;
|
|
|
|
|
|
|
|
|
|
|
|
|