1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 18:27:43 +00:00

One PGP key can be for multiple users

This commit is contained in:
M66B 2020-09-01 19:15:03 +02:00
parent 0bebca4bf8
commit 4a9ab48ff6

View file

@ -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)));