aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2015-12-05 19:03:17 +0100
committerDaniel Gultsch <daniel@gultsch.de>2015-12-05 19:03:17 +0100
commitbd765c59cefc408d24240c93146ffaf03b74ae3a (patch)
tree9dfa3d4934eb040180768e0609f49655af89b147 /src/main/java
parentb7f326372d6ea2aceb40e36f18d9eaaba23fa97e (diff)
check availabiltiy of pgp before sharing files
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/eu/siacs/conversations/ui/ShareWithActivity.java4
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