diff options
author | Takeshi Umeda <noel.yoshiba@gmail.com> | 2020-10-01 11:17:46 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-01 04:17:46 +0200 |
commit | bec8b12bb52a57b54b66899b2650a5611d9bd561 (patch) | |
tree | b636c6fc17d50d1fb5faa8b42c8ff8cf5169520f /app/javascript/mastodon/features/notifications/index.js | |
parent | 65136600e36ded708dc4ea5a1ef04031db51b021 (diff) |
Fix mark as read in notifications to be saved immediately (#14907)
* Fix mark as read in notifications to be saved immediately * fix code style
Diffstat (limited to 'app/javascript/mastodon/features/notifications/index.js')
-rw-r--r-- | app/javascript/mastodon/features/notifications/index.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/javascript/mastodon/features/notifications/index.js b/app/javascript/mastodon/features/notifications/index.js index 41a45b2b6..68afe593d 100644 --- a/app/javascript/mastodon/features/notifications/index.js +++ b/app/javascript/mastodon/features/notifications/index.js @@ -12,6 +12,7 @@ import { unmountNotifications, markNotificationsAsRead, } from '../../actions/notifications'; +import { submitMarkers } from '../../actions/markers'; import { addColumn, removeColumn, moveColumn } from '../../actions/columns'; import NotificationContainer from './containers/notification_container'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; @@ -162,6 +163,7 @@ class Notifications extends React.PureComponent { handleMarkAsRead = () => { this.props.dispatch(markNotificationsAsRead()); + this.props.dispatch(submitMarkers({ immediate: true })); }; render () { |