From 497a603a888e482747bc29eb19925069d6440e3e Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 27 Aug 2020 14:35:28 -0500 Subject: [PATCH] Notifications: drop chat mentions Prevent streaming API from pushing in unwanted notifications https://git.pleroma.social/pleroma/pleroma/-/issues/2076 --- app/soapbox/actions/notifications.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/soapbox/actions/notifications.js b/app/soapbox/actions/notifications.js index 8f2b2f1c2..eb6b92aeb 100644 --- a/app/soapbox/actions/notifications.js +++ b/app/soapbox/actions/notifications.js @@ -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]);