-
Notifications
You must be signed in to change notification settings - Fork 18
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
TW-99: Clean ToM DB on logout #543
Conversation
This PR has been deployed to https://linagora.github.io/twake-on-matrix/543 |
Pls add demo for this case. |
253b664
to
3a99def
Compare
3a99def
to
3c20248
Compare
3c20248
to
c76d20d
Compare
ebb4709
to
30b2b2c
Compare
lib/widgets/matrix.dart
Outdated
} else { | ||
setUpToMServicesInLogin(c); | ||
if (state == LoginState.loggedIn) { | ||
navigatorContext?.go('/rooms'); | ||
} else { | ||
await getIt.get<HiveCollectionToMDatabase>().clear(); | ||
await c.clear(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we dont need it? WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me we don't need it because it's already call in logout action
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove it
d5ba179
to
bc5da8f
Compare
@hoangdat |
This Closes #99