Fix crash by removing all notifications after clearing cache.

Fixes #878
This commit is contained in:
onurays 2020-02-11 16:48:28 +03:00
parent 251de0b89c
commit 3573aea600
2 changed files with 2 additions and 2 deletions

View File

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

View File

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