hide multi-end and otr encryption in conferences
This commit is contained in:
parent
34b22dea48
commit
5c0853f302
|
@ -396,6 +396,7 @@ public class ConversationActivity extends XmppActivity
|
||||||
menuContactDetails.setVisible(false);
|
menuContactDetails.setVisible(false);
|
||||||
menuAttach.setVisible(getSelectedConversation().getAccount().httpUploadAvailable());
|
menuAttach.setVisible(getSelectedConversation().getAccount().httpUploadAvailable());
|
||||||
menuInviteContact.setVisible(getSelectedConversation().getMucOptions().canInvite());
|
menuInviteContact.setVisible(getSelectedConversation().getMucOptions().canInvite());
|
||||||
|
menuSecure.setVisible(!Config.HIDE_PGP_IN_UI); //if pgp is hidden conferences have no choice of encryption
|
||||||
} else {
|
} else {
|
||||||
menuMucDetails.setVisible(false);
|
menuMucDetails.setVisible(false);
|
||||||
}
|
}
|
||||||
|
@ -786,8 +787,8 @@ public class ConversationActivity extends XmppActivity
|
||||||
MenuItem axolotl = popup.getMenu().findItem(R.id.encryption_choice_axolotl);
|
MenuItem axolotl = popup.getMenu().findItem(R.id.encryption_choice_axolotl);
|
||||||
pgp.setVisible(!Config.HIDE_PGP_IN_UI);
|
pgp.setVisible(!Config.HIDE_PGP_IN_UI);
|
||||||
if (conversation.getMode() == Conversation.MODE_MULTI) {
|
if (conversation.getMode() == Conversation.MODE_MULTI) {
|
||||||
otr.setEnabled(false);
|
otr.setVisible(false);
|
||||||
axolotl.setEnabled(false);
|
axolotl.setVisible(false);
|
||||||
} else if (!conversation.getAccount().getAxolotlService().isContactAxolotlCapable(conversation.getContact())) {
|
} else if (!conversation.getAccount().getAxolotlService().isContactAxolotlCapable(conversation.getContact())) {
|
||||||
axolotl.setEnabled(false);
|
axolotl.setEnabled(false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue