avoid using the Thread menu items before messages load in

This commit is contained in:
tibbi 2020-04-11 11:22:22 +02:00
parent 2a0a96718a
commit e0052d5516
1 changed files with 4 additions and 0 deletions

View File

@ -89,6 +89,10 @@ class ThreadActivity : SimpleActivity() {
} }
override fun onOptionsItemSelected(item: MenuItem): Boolean { override fun onOptionsItemSelected(item: MenuItem): Boolean {
if (participants.isEmpty()) {
return true
}
when (item.itemId) { when (item.itemId) {
R.id.block_number -> blockNumber() R.id.block_number -> blockNumber()
R.id.delete -> askConfirmDelete() R.id.delete -> askConfirmDelete()