1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-14 11:42:04 +01:00

Hack: consider ikey_trusted keys as trusted

This commit is contained in:
Paul Schaub 2021-03-29 13:43:45 +02:00
parent 77f4273c3a
commit 171f916df2

View file

@ -152,8 +152,11 @@ public class OpenPgpContact {
while (iterator.hasNext()) {
PGPPublicKeyRing ring = iterator.next();
OpenPgpV4Fingerprint fingerprint = new OpenPgpV4Fingerprint(ring);
if (store.getTrust(getJid(), fingerprint) != trust) {
toRemove.add(ring);
if (trust == OpenPgpTrustStore.Trust.trusted) {
OpenPgpTrustStore.Trust fingerprintTrust = store.getTrust(getJid(), fingerprint);
if (fingerprintTrust != OpenPgpTrustStore.Trust.trusted && fingerprintTrust != OpenPgpTrustStore.Trust.ikey_trusted) {
toRemove.add(ring);
}
}
}