fix crash when conversation is deleted

This commit is contained in:
Moez Bhatti
2017-08-28 17:13:47 -07:00
parent ece5a8e93b
commit 335cd29f71
@@ -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)