One PGP key can be for multiple users

pull/184/head
M66B 5 years ago
parent 0bebca4bf8
commit 4a9ab48ff6

@ -2326,7 +2326,7 @@ public class FragmentCompose extends FragmentBase {
// Sign/encrypt
pgpKeyIds = result.getLongArrayExtra(OpenPgpApi.EXTRA_KEY_IDS);
Log.i("Keys=" + pgpKeyIds.length);
if (pgpKeyIds.length != pgpUserIds.length)
if (pgpKeyIds.length == 0) // One key can be for multiple users
throw new IllegalArgumentException(context.getString(R.string.title_key_missing,
TextUtils.join(", ", pgpUserIds)));

Loading…
Cancel
Save