Skip to content
Snippets Groups Projects
Commit 5ebd1352 authored by Lanius-collaris's avatar Lanius-collaris :palm_tree: Committed by Adrien Béraud
Browse files

ContactDetails: do not show profile dialog for accounts from search results

GitLab: #1387
Change-Id: Ie8dc54f3f21ca7a855fd798485331ce896e721cb
parent edc1c18a
No related branches found
No related tags found
No related merge requests found
......@@ -179,7 +179,8 @@ class ContactDetailsActivity : AppCompatActivity(), TabLayout.OnTabSelectedListe
binding.description.text = getString(R.string.swarm_description)
else
binding.description.text = vm.conversationProfile.description
if (vm.mode == Conversation.Mode.OneToOne) {
// Note: For a random account from search results, mode will be Legacy
if (vm.mode == Conversation.Mode.OneToOne || vm.mode == Conversation.Mode.Legacy) {
binding.title.setOnClickListener(null)
binding.description.setOnClickListener(null)
binding.contactImage.setOnClickListener(null)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment