OTR & another.im #23
|
@ -1410,10 +1410,10 @@ public class ConversationFragment extends XmppFragment
|
||||||
final MenuItem startSecretChat = menu.findItem(R.id.action_start_secret_chat);
|
final MenuItem startSecretChat = menu.findItem(R.id.action_start_secret_chat);
|
||||||
final MenuItem encryption = menu.findItem(R.id.action_security);
|
final MenuItem encryption = menu.findItem(R.id.action_security);
|
||||||
|
|
||||||
boolean considerAsSecretChat = conversation.getMode() == Conversational.MODE_SINGLE &&
|
|
||||||
conversation.getNextCounterpart() != null && conversation.hasPermanentCounterpart();
|
|
||||||
|
|
||||||
if (conversation != null) {
|
if (conversation != null) {
|
||||||
|
boolean considerAsSecretChat = conversation.getMode() == Conversational.MODE_SINGLE &&
|
||||||
|
conversation.getNextCounterpart() != null && conversation.hasPermanentCounterpart();
|
||||||
|
|
||||||
if (conversation.getMode() == Conversation.MODE_MULTI) {
|
if (conversation.getMode() == Conversation.MODE_MULTI) {
|
||||||
menuContactDetails.setVisible(false);
|
menuContactDetails.setVisible(false);
|
||||||
menuInviteContact.setVisible(conversation.getMucOptions().canInvite() && conversation.getNextCounterpart() == null);
|
menuInviteContact.setVisible(conversation.getMucOptions().canInvite() && conversation.getNextCounterpart() == null);
|
||||||
|
@ -1425,6 +1425,9 @@ public class ConversationFragment extends XmppFragment
|
||||||
menuOngoingCall.setVisible(false);
|
menuOngoingCall.setVisible(false);
|
||||||
startSecretChat.setVisible(false);
|
startSecretChat.setVisible(false);
|
||||||
} else {
|
} else {
|
||||||
|
if (considerAsSecretChat) {
|
||||||
|
startSecretChat.setVisible(false);
|
||||||
|
}
|
||||||
menuMucParticipants.setVisible(false);
|
menuMucParticipants.setVisible(false);
|
||||||
final XmppConnectionService service =
|
final XmppConnectionService service =
|
||||||
activity == null ? null : activity.xmppConnectionService;
|
activity == null ? null : activity.xmppConnectionService;
|
||||||
|
|
Loading…
Reference in a new issue