mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-22 04:41:43 +03:00
Merge pull request #1090 from esteemapp/bugfix/notf-unread
changed seting unread count dispatch func
This commit is contained in:
commit
7d045d2b89
@ -124,9 +124,9 @@ class NotificationContainer extends Component {
|
||||
this.setState({ isNotificationRefreshing: true });
|
||||
|
||||
markActivityAsRead(username)
|
||||
.then(result => {
|
||||
dispatch(updateUnreadActivityCount(result.unread));
|
||||
.then(() => {
|
||||
const updatedNotifications = notifications.map(item => ({ ...item, read: 1 }));
|
||||
dispatch(updateUnreadActivityCount(0));
|
||||
this.setState({ notifications: updatedNotifications, isNotificationRefreshing: false });
|
||||
})
|
||||
.catch(() => {
|
||||
|
Loading…
Reference in New Issue
Block a user