mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-17 03:28:52 +01:00
fix crash when conversation is deleted
This commit is contained in:
@@ -26,7 +26,11 @@ class MessageListActivity : QkActivity() {
|
||||
.inject(this)
|
||||
|
||||
viewModel.conversation.addChangeListener { realmResults ->
|
||||
title = realmResults[0]?.getTitle()
|
||||
if (realmResults.size > 0) {
|
||||
title = realmResults[0]?.getTitle()
|
||||
} else {
|
||||
finish()
|
||||
}
|
||||
}
|
||||
|
||||
val layoutManager = LinearLayoutManager(this)
|
||||
|
||||
Reference in New Issue
Block a user