diff --git a/app/soapbox/actions/notifications.js b/app/soapbox/actions/notifications.js index 1a1175700..63d4adab3 100644 --- a/app/soapbox/actions/notifications.js +++ b/app/soapbox/actions/notifications.js @@ -148,7 +148,7 @@ export function dequeueNotifications() { const excludeTypesFromSettings = getState => getSettings(getState()).getIn(['notifications', 'shows']).filter(enabled => !enabled).keySeq().toJS(); const excludeTypesFromFilter = filter => { - const allTypes = ImmutableList(['follow', 'favourite', 'reblog', 'mention', 'poll']); + const allTypes = ImmutableList(['follow', 'favourite', 'reblog', 'mention', 'poll', 'pleroma:emoji_reaction']); return allTypes.filterNot(item => item === filter).toJS(); }; diff --git a/app/soapbox/actions/settings.js b/app/soapbox/actions/settings.js index 9bace7d7e..b96504647 100644 --- a/app/soapbox/actions/settings.js +++ b/app/soapbox/actions/settings.js @@ -56,6 +56,7 @@ export const defaultSettings = ImmutableMap({ reblog: true, mention: true, poll: true, + 'pleroma:emoji_reaction': true, }), quickFilter: ImmutableMap({ @@ -70,6 +71,7 @@ export const defaultSettings = ImmutableMap({ reblog: true, mention: true, poll: true, + 'pleroma:emoji_reaction': true, }), sounds: ImmutableMap({ @@ -78,6 +80,7 @@ export const defaultSettings = ImmutableMap({ reblog: false, mention: false, poll: false, + 'pleroma:emoji_reaction': false, }), }), diff --git a/app/soapbox/features/notifications/components/column_settings.js b/app/soapbox/features/notifications/components/column_settings.js index a7aa1f87b..bb73a23c0 100644 --- a/app/soapbox/features/notifications/components/column_settings.js +++ b/app/soapbox/features/notifications/components/column_settings.js @@ -20,7 +20,7 @@ export default class ColumnSettings extends React.PureComponent { } onAllSoundsChange = (path, checked) => { - const soundSettings = [['sounds', 'follow'], ['sounds', 'favourite'], ['sounds', 'mention'], ['sounds', 'reblog'], ['sounds', 'poll']]; + const soundSettings = [['sounds', 'follow'], ['sounds', 'favourite'], ['sounds', 'pleroma:emoji_reaction'], ['sounds', 'mention'], ['sounds', 'reblog'], ['sounds', 'poll']]; for (var i = 0; i < soundSettings.length; i++) { this.props.onChange(soundSettings[i], checked); @@ -36,7 +36,7 @@ export default class ColumnSettings extends React.PureComponent { const allSoundsStr = ; const showStr = ; const soundStr = ; - const soundSettings = [['sounds', 'follow'], ['sounds', 'favourite'], ['sounds', 'mention'], ['sounds', 'reblog'], ['sounds', 'poll']]; + const soundSettings = [['sounds', 'follow'], ['sounds', 'favourite'], ['sounds', 'pleroma:emoji_reaction'], ['sounds', 'mention'], ['sounds', 'reblog'], ['sounds', 'poll']]; const showPushSettings = pushSettings.get('browserSupport') && pushSettings.get('isSubscribed'); const pushStr = showPushSettings && ; @@ -85,6 +85,17 @@ export default class ColumnSettings extends React.PureComponent { +
+ + +
+ + {showPushSettings && } + + +
+
+
diff --git a/app/soapbox/features/notifications/components/filter_bar.js b/app/soapbox/features/notifications/components/filter_bar.js index ced6f9e82..cd7f00eda 100644 --- a/app/soapbox/features/notifications/components/filter_bar.js +++ b/app/soapbox/features/notifications/components/filter_bar.js @@ -9,6 +9,7 @@ const tooltips = defineMessages({ boosts: { id: 'notifications.filter.boosts', defaultMessage: 'Reposts' }, polls: { id: 'notifications.filter.polls', defaultMessage: 'Poll results' }, follows: { id: 'notifications.filter.follows', defaultMessage: 'Follows' }, + emoji_reacts: { id: 'notifications.filter.emoji_reacts', defaultMessage: 'Emoji reacts:' }, }); export default @injectIntl @@ -73,6 +74,13 @@ class FilterBar extends React.PureComponent { > +