Fixed constant loading messages text (#225)

This commit is contained in:
Agnieszka C 2021-10-11 09:20:37 +02:00
parent 1a4ceadbee
commit c2c76a2fd0

View File

@ -278,6 +278,10 @@ class MainActivity : SimpleActivity() {
} else {
try {
(currAdapter as ConversationsAdapter).updateConversations(sortedConversations)
if (currAdapter.conversations.isEmpty()) {
no_conversations_placeholder.text = getString(R.string.no_conversations_found)
no_conversations_placeholder_2.beVisible()
}
} catch (ignored: Exception) {
}
}