mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
Add feature flag for private message deletion.
This commit is contained in:
@@ -246,6 +246,11 @@ public class AppModule {
|
||||
public boolean shouldEnableRemoteContacts() {
|
||||
return IS_DEBUG_BUILD;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldEnablePrivateMessageDeletion() {
|
||||
return IS_DEBUG_BUILD;
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -356,6 +356,11 @@ public class ConversationActivity extends BriarActivity
|
||||
MenuInflater inflater = getMenuInflater();
|
||||
inflater.inflate(R.menu.conversation_actions, menu);
|
||||
|
||||
// Hide private message deletion action if feature is not enabled
|
||||
if (!featureFlags.shouldEnablePrivateMessageDeletion()) {
|
||||
menu.removeItem(R.id.action_delete_all_messages);
|
||||
}
|
||||
|
||||
// enable introduction action if available
|
||||
observeOnce(viewModel.showIntroductionAction(), this, enable -> {
|
||||
if (enable != null && enable) {
|
||||
|
||||
Reference in New Issue
Block a user