Notifications: drop chat mentions
Prevent streaming API from pushing in unwanted notifications https://git.pleroma.social/pleroma/pleroma/-/issues/2076
This commit is contained in:
parent
859f340716
commit
497a603a88
1 changed files with 2 additions and 0 deletions
|
@ -71,6 +71,8 @@ export function updateNotifications(notification, intlMessages, intlLocale) {
|
|||
|
||||
export function updateNotificationsQueue(notification, intlMessages, intlLocale, curPath) {
|
||||
return (dispatch, getState) => {
|
||||
if (notification.type === 'pleroma:chat_mention') return; // Drop chat notifications, handle them per-chat
|
||||
|
||||
const showAlert = getSettings(getState()).getIn(['notifications', 'alerts', notification.type]);
|
||||
const filters = getFilters(getState(), { contextType: 'notifications' });
|
||||
const playSound = getSettings(getState()).getIn(['notifications', 'sounds', notification.type]);
|
||||
|
|
Loading…
Reference in a new issue