Properly clear messages from database

This commit is contained in:
Naveen 2023-09-30 02:21:49 +05:30
parent 67e9b4587b
commit 4582bc5289
No known key found for this signature in database
GPG key ID: 0E155DAD31671DA3
4 changed files with 12 additions and 8 deletions

View file

@ -136,7 +136,6 @@ class ThreadActivity : SimpleActivity() {
return
}
clearAllMessagesIfNeeded()
threadId = intent.getLongExtra(THREAD_ID, 0L)
intent.getStringExtra(THREAD_TITLE)?.let {
binding.threadToolbar.title = it
@ -152,7 +151,9 @@ class ThreadActivity : SimpleActivity() {
handleAppPasswordProtection {
wasProtectionHandled = it
if (it) {
loadConversation()
clearAllMessagesIfNeeded {
loadConversation()
}
} else {
finish()
}