Verified Commit 8858b7dd authored by akwizgran's avatar akwizgran
Browse files

Show disabled menu item if we support feature but contact doesn't.

parent f584041f
Pipeline #5862 passed with stages
in 10 minutes and 14 seconds
......@@ -373,14 +373,13 @@ public class ConversationActivity extends BriarActivity
// enable alias action if available
observeOnce(viewModel.getContactItem(), this, contact ->
// show auto-delete timer setting only, if contacts supports it
// Show auto-delete menu item if feature is enabled
if (featureFlags.shouldEnableDisappearingMessages()) {
observeOnce(viewModel.getPrivateMessageFormat(), this, format -> {
boolean visible = format == TEXT_IMAGES_AUTO_DELETE;
MenuItem item =
MenuItem item = menu.findItem(;
// Enable menu item only if contact supports auto-delete
observeOnce(viewModel.getPrivateMessageFormat(), this, format ->
item.setEnabled(format == TEXT_IMAGES_AUTO_DELETE));
return super.onCreateOptionsMenu(menu);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment