mirror of
https://github.com/moparisthebest/Conversations
synced 2024-12-26 01:09:13 -05:00
check availabiltiy of pgp before sharing files
This commit is contained in:
parent
b7f326372d
commit
bd765c59ce
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user