Merge pull request #986 from vector-im/feature/fix_clear_cache_notification_click

Fix crash by removing all notifications after clearing cache.
This commit is contained in:
Onuray Sahin 2020-02-11 18:06:16 +03:00 committed by GitHub
commit 7c5bb4ff5b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ Other changes:
-
Bugfix 🐛:
-
- Fix crash by removing all notifications after clearing cache (#878)
Translations 🗣:
-

View file

@ -85,7 +85,7 @@ class MainActivity : VectorBaseActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
args = parseArgs()
if (args.clearCredentials || args.isUserLoggedOut) {
if (args.clearCredentials || args.isUserLoggedOut || args.clearCache) {
clearNotifications()
}
// Handle some wanted cleanup