Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update useAppStateCb event listener when etebase changes #147

Merged
merged 1 commit into from
Feb 2, 2021

Conversation

zecakeh
Copy link
Contributor

@zecakeh zecakeh commented Feb 2, 2021

Since etebase's value wasn't updated in the event listener after RootNavigator was created, the app was not syncing when coming back to foreground after login (etebase === null) and was trying to sync when coming back to foreground after logout (etebase !== null), until the app was restarted.

This fixes #138.

Tested on native Android

The app was not syncing when coming back to foreground after login.
The app was trying to sync when coming back to foreground after logout.
@tasn tasn merged commit ce93464 into etesync:master Feb 2, 2021
@zecakeh zecakeh deleted the fix-appstatecb branch February 2, 2021 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Android 11: crash when switching to password manager to login and switching back to Notes
2 participants