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