disable "reply privately" in contact requests chat

This commit is contained in:
adbenitez
2021-04-21 17:54:00 -04:00
parent 0f9a3dd0de
commit 79abbee12d
@@ -335,7 +335,7 @@ public class ConversationFragment extends MessageSelectorFragment
menu.findItem(R.id.menu_context_save_attachment).setVisible(messageRecord.hasFile());
boolean canReply = canReplyToMsg(messageRecord);
menu.findItem(R.id.menu_context_reply).setVisible(chat.canSend() && canReply);
boolean showReplyPrivately = chat.isGroup() && !messageRecord.isOutgoing() && canReply;
boolean showReplyPrivately = chat.isGroup() && !messageRecord.isOutgoing() && canReply && chat.getId() != DcChat.DC_CHAT_ID_DEADDROP;
menu.findItem(R.id.menu_context_reply_privately).setVisible(showReplyPrivately);
}