[Glitch] Fix being unable to disable sound for quote update notification
Port 954cc92a6d8e34c78200b8791efaaf603d6a881a to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
ed14c03f24
commit
4028172753
@ -26,8 +26,10 @@ defineMessages({
|
|||||||
|
|
||||||
export function updateNotifications(notification, intlMessages, intlLocale) {
|
export function updateNotifications(notification, intlMessages, intlLocale) {
|
||||||
return (dispatch, getState) => {
|
return (dispatch, getState) => {
|
||||||
const showAlert = getState().getIn(['settings', 'notifications', 'alerts', notification.type], true);
|
const filterType = notification.type === 'quoted_update' ? 'update' : notification.type;
|
||||||
const playSound = getState().getIn(['settings', 'notifications', 'sounds', notification.type], true);
|
|
||||||
|
const showAlert = getState().getIn(['settings', 'notifications', 'alerts', filterType], true);
|
||||||
|
const playSound = getState().getIn(['settings', 'notifications', 'sounds', filterType], true);
|
||||||
|
|
||||||
let filtered = false;
|
let filtered = false;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user