1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-26 23:34:45 +00:00

optimize notification (#7521)

* update

* update

---------

Co-authored-by: 孙永强 <11704063+s-yongqiang@user.noreply.gitee.com>
This commit is contained in:
awu0403
2025-02-27 17:00:33 +08:00
committed by GitHub
parent 2fb65580e4
commit 3899577631
5 changed files with 81 additions and 67 deletions

View File

@@ -101,6 +101,7 @@ class UserNotificationsDialog extends React.Component {
return item;
})
});
this.props.updateTotalUnseenCount('general');
}).catch((error) => {
this.setState({
isLoading: false,
@@ -115,6 +116,7 @@ class UserNotificationsDialog extends React.Component {
return item;
})
});
this.props.updateTotalUnseenCount('discussion');
}).catch((error) => {
this.setState({
isLoading: false,
@@ -131,6 +133,7 @@ class UserNotificationsDialog extends React.Component {
this.setState({
items: []
});
this.props.updateTotalUnseenCount('general');
}).catch((error) => {
this.setState({
isLoading: false,
@@ -142,6 +145,7 @@ class UserNotificationsDialog extends React.Component {
this.setState({
items: []
});
this.props.updateTotalUnseenCount('discussion');
}).catch((error) => {
this.setState({
isLoading: false,