mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-18 19:01:38 +03:00
inactivity notification route
This commit is contained in:
parent
70d864190d
commit
8b1d77ddfb
@ -435,6 +435,11 @@ class ApplicationContainer extends Component {
|
||||
};
|
||||
break;
|
||||
|
||||
case 'inactive':
|
||||
routeName = ROUTES.SCREENS.EDITOR;
|
||||
key = push.source || 'inactive';
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
@ -45,6 +45,7 @@ class NotificationContainer extends Component {
|
||||
this.setState({ isNotificationRefreshing: true });
|
||||
getActivities({ user: user || username, type, since })
|
||||
.then((res) => {
|
||||
console.log(res);
|
||||
const lastId = res.length > 0 ? [...res].pop().id : null;
|
||||
if (lastId === lastNotificationId || res.length === 0) {
|
||||
this.setState({
|
||||
@ -92,6 +93,8 @@ class NotificationContainer extends Component {
|
||||
routeName = ROUTES.TABBAR.WALLET;
|
||||
} else if (type === 'spin') {
|
||||
routeName = ROUTES.SCREENS.BOOST;
|
||||
} else if (type === 'inactive') {
|
||||
routeName = ROUTES.SCREENS.EDITOR;
|
||||
}
|
||||
|
||||
if (routeName) {
|
||||
|
Loading…
Reference in New Issue
Block a user