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
1 changed files with 4 additions and 0 deletions

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