diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2015-12-05 19:03:17 +0100 |
---|---|---|
committer | Christian S <christian@pix-art.de> | 2015-12-06 10:58:29 +0100 |
commit | 7e2e4e4b98811b1a32bd2f3343356cc87b8d68f1 (patch) | |
tree | d0da8b8afba96b2d26a518f5e21cae9cc36c13ed | |
parent | de83fbe4f65d02fa764cfb3d07d4cd5ef39ecd06 (diff) |
check availabiltiy of pgp before sharing files
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/ShareWithActivity.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/ShareWithActivity.java b/src/main/java/eu/siacs/conversations/ui/ShareWithActivity.java index 8ec44f4e5..35f1ff359 100644 --- a/src/main/java/eu/siacs/conversations/ui/ShareWithActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/ShareWithActivity.java @@ -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 |