diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2015-12-05 19:03:17 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2015-12-05 19:03:17 +0100 |
commit | bd765c59cefc408d24240c93146ffaf03b74ae3a (patch) | |
tree | 9dfa3d4934eb040180768e0609f49655af89b147 /src/main | |
parent | b7f326372d6ea2aceb40e36f18d9eaaba23fa97e (diff) |
check availabiltiy of pgp before sharing files
Diffstat (limited to 'src/main')
-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 8ec44f4e..35f1ff35 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 |