mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 11:42:15 -05:00
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);
|
||||
menuAttach.setVisible(getSelectedConversation().getAccount().httpUploadAvailable());
|
||||
menuInviteContact.setVisible(getSelectedConversation().getMucOptions().canInvite());
|
||||
menuSecure.setVisible(!Config.HIDE_PGP_IN_UI); //if pgp is hidden conferences have no choice of encryption
|
||||
} else {
|
||||
menuMucDetails.setVisible(false);
|
||||
}
|
||||
@ -786,8 +787,8 @@ public class ConversationActivity extends XmppActivity
|
||||
MenuItem axolotl = popup.getMenu().findItem(R.id.encryption_choice_axolotl);
|
||||
pgp.setVisible(!Config.HIDE_PGP_IN_UI);
|
||||
if (conversation.getMode() == Conversation.MODE_MULTI) {
|
||||
otr.setEnabled(false);
|
||||
axolotl.setEnabled(false);
|
||||
otr.setVisible(false);
|
||||
axolotl.setVisible(false);
|
||||
} else if (!conversation.getAccount().getAxolotlService().isContactAxolotlCapable(conversation.getContact())) {
|
||||
axolotl.setEnabled(false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user