mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-21 04:11:50 +03:00
changed seting unread count dispatch func
This commit is contained in:
parent
31b6a98b1b
commit
50389bc9f8
@ -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