family file fixes

merge-update-with-lab-changes
Sultan Khan 4 years ago
parent 0e43ca173a
commit c58023efc3

@ -231,7 +231,7 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
locationUtils = new LocationUtils(isShowConfirmDialog: false, context: context);
WidgetsBinding.instance.addPostFrameCallback((_) {
if (projectViewModel.isLogin) {
if (projectViewModel.isLogin && !projectViewModel.isLoginChild) {
familyFileProvider.getSharedRecordByStatus();
}
});
@ -253,7 +253,10 @@ class _LandingPageState extends State<LandingPage> with WidgetsBindingObserver {
sharedPref.setString(PUSH_TOKEN, token);
if (token != null) {
DEVICE_TOKEN = token;
checkUserStatus(token);
if (!projectViewModel.isLoginChild) {
checkUserStatus(token);
}
// if (projectViewModel.isLogin) this.getNotificationCount(DEVICE_TOKEN);
}
});

Loading…
Cancel
Save