check availabiltiy of pgp before sharing files

This commit is contained in:
Daniel Gultsch 2015-12-05 19:03:17 +01:00
parent b7f326372d
commit bd765c59ce

View file

@ -192,6 +192,10 @@ public class ShareWithActivity extends XmppActivity {
}
private void share(final Conversation conversation) {
if (conversation.getNextEncryption() == Message.ENCRYPTION_PGP && !hasPgp()) {
showInstallPgpDialog();
return;
}
if (share.uris.size() != 0) {
OnPresenceSelected callback = new OnPresenceSelected() {
@Override