mirror of
https://github.com/moparisthebest/open-keychain
synced 2024-11-17 22:35:05 -05:00
API: Return metadata only for v4 api clients and above...
This commit is contained in:
parent
1a8606f194
commit
37edd0f390
@ -428,7 +428,7 @@ public class OpenPgpService extends RemoteService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (data.getIntExtra(OpenPgpApi.EXTRA_API_VERSION, -1) == 4) {
|
if (data.getIntExtra(OpenPgpApi.EXTRA_API_VERSION, -1) >= 4) {
|
||||||
OpenPgpMetadata metadata = decryptVerifyResult.getDecryptMetadata();
|
OpenPgpMetadata metadata = decryptVerifyResult.getDecryptMetadata();
|
||||||
if (metadata != null) {
|
if (metadata != null) {
|
||||||
result.putExtra(OpenPgpApi.RESULT_METADATA, metadata);
|
result.putExtra(OpenPgpApi.RESULT_METADATA, metadata);
|
||||||
|
Loading…
Reference in New Issue
Block a user