mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-18 19:01:38 +03:00
fixed issue with mark all read endpoint
This commit is contained in:
parent
a073a34873
commit
d611d5e6a8
@ -108,7 +108,7 @@ class NotificationContainer extends Component {
|
|||||||
};
|
};
|
||||||
|
|
||||||
_readAllNotification = () => {
|
_readAllNotification = () => {
|
||||||
const { username, dispatch, intl, isConnected } = this.props;
|
const { dispatch, intl, isConnected } = this.props;
|
||||||
const { notifications } = this.state;
|
const { notifications } = this.state;
|
||||||
|
|
||||||
if (!isConnected) {
|
if (!isConnected) {
|
||||||
@ -117,7 +117,7 @@ class NotificationContainer extends Component {
|
|||||||
|
|
||||||
this.setState({ isNotificationRefreshing: true });
|
this.setState({ isNotificationRefreshing: true });
|
||||||
|
|
||||||
markNotifications(username)
|
markNotifications()
|
||||||
.then(() => {
|
.then(() => {
|
||||||
const updatedNotifications = notifications.map((item) => ({ ...item, read: 1 }));
|
const updatedNotifications = notifications.map((item) => ({ ...item, read: 1 }));
|
||||||
dispatch(updateUnreadActivityCount(0));
|
dispatch(updateUnreadActivityCount(0));
|
||||||
|
Loading…
Reference in New Issue
Block a user