Fix being unable to disable sound for quote update notification (#38537)

This commit is contained in:
Claire 2026-04-02 15:47:22 +02:00 committed by GitHub
parent f7c00d8d4e
commit 954cc92a6d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -26,8 +26,10 @@ defineMessages({
export function updateNotifications(notification, intlMessages, intlLocale) {
return (dispatch, getState) => {
const showAlert = getState().getIn(['settings', 'notifications', 'alerts', notification.type], true);
const playSound = getState().getIn(['settings', 'notifications', 'sounds', notification.type], true);
const filterType = notification.type === 'quoted_update' ? 'update' : notification.type;
const showAlert = getState().getIn(['settings', 'notifications', 'alerts', filterType], true);
const playSound = getState().getIn(['settings', 'notifications', 'sounds', filterType], true);
let filtered = false;