[Glitch] Fix notification filter selection after settings change

Port 87d99b17cc to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
Sharlayan authored and Claire committed 2026-07-20 18:19:31 +02:00
1 parent d7a3b29a9a
commit 561f1bdb71
1 file changed
+1 -1
@@ -44,7 +44,7 @@ const mapDispatchToProps = (dispatch) => ({
}
} else if (path[0] === 'quickFilter') {
dispatch(changeSetting(['notifications', ...path], checked));
dispatch(setNotificationsFilter('all'));
dispatch(setNotificationsFilter({ filterType: 'all' }));
} else if (path[0] === 'alerts' && checked && typeof window.Notification !== 'undefined' && Notification.permission !== 'granted') {
if (checked && typeof window.Notification !== 'undefined' && Notification.permission !== 'granted') {
dispatch(requestBrowserPermission((permission) => {