mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-27 02:07:12 +00:00
One PGP key can be for multiple users
This commit is contained in:
parent
0bebca4bf8
commit
4a9ab48ff6
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue