mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 06:12:05 +01:00
Hack: consider ikey_trusted keys as trusted
This commit is contained in:
parent
77f4273c3a
commit
171f916df2
1 changed files with 5 additions and 2 deletions
|
@ -152,8 +152,11 @@ public class OpenPgpContact {
|
||||||
while (iterator.hasNext()) {
|
while (iterator.hasNext()) {
|
||||||
PGPPublicKeyRing ring = iterator.next();
|
PGPPublicKeyRing ring = iterator.next();
|
||||||
OpenPgpV4Fingerprint fingerprint = new OpenPgpV4Fingerprint(ring);
|
OpenPgpV4Fingerprint fingerprint = new OpenPgpV4Fingerprint(ring);
|
||||||
if (store.getTrust(getJid(), fingerprint) != trust) {
|
if (trust == OpenPgpTrustStore.Trust.trusted) {
|
||||||
toRemove.add(ring);
|
OpenPgpTrustStore.Trust fingerprintTrust = store.getTrust(getJid(), fingerprint);
|
||||||
|
if (fingerprintTrust != OpenPgpTrustStore.Trust.trusted && fingerprintTrust != OpenPgpTrustStore.Trust.ikey_trusted) {
|
||||||
|
toRemove.add(ring);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue