do not show Mark as Unread at empty conversations

This commit is contained in:
tibbi 2022-04-12 10:08:39 +02:00
parent a216919cc0
commit 15d6b7f17a

View File

@ -151,6 +151,7 @@ class ThreadActivity : SimpleActivity() {
findItem(R.id.delete).isVisible = threadItems.isNotEmpty()
findItem(R.id.block_number).isVisible = isNougatPlus()
findItem(R.id.dial_number).isVisible = participants.size == 1
findItem(R.id.mark_as_unread).isVisible = threadItems.isNotEmpty()
// allow saving number in cases when we dont have it stored yet and it is a casual readable number
findItem(R.id.add_number_to_contact).isVisible = participants.size == 1 && participants.first().name == firstPhoneNumber && firstPhoneNumber.any {