From: David ‘Bombe’ Roden Date: Sat, 18 Apr 2020 15:13:18 +0000 (+0200) Subject: 🚧 Use strictly-filtered identities X-Git-Tag: v82^2~11 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=884606571eff6e4f80af9485695848bfb5e7fa95;hp=6ebf42a54cc1ef44bdd762ad06e9b1a84bd7ad25 🚧 Use strictly-filtered identities --- diff --git a/src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityManagerImpl.kt b/src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityManagerImpl.kt index c8c758d..ae5dd1e 100644 --- a/src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityManagerImpl.kt +++ b/src/main/kotlin/net/pterodactylus/sone/freenet/wot/IdentityManagerImpl.kt @@ -77,13 +77,13 @@ class IdentityManagerImpl @Inject constructor( logger.log(Level.FINE, "Reduced (${currentIdentities.size},(${currentIdentities.values.joinToString { it.size.toString() }})) identities to (${onlyTrustedByAll.size},(${onlyTrustedByAll.values.joinToString { it.size.toString() }})).") val identityChangeEventSender = IdentityChangeEventSender(eventBus, oldIdentities) - identityChangeEventSender.detectChanges(currentIdentities) + identityChangeEventSender.detectChanges(onlyTrustedByAll) - oldIdentities = currentIdentities + oldIdentities = onlyTrustedByAll synchronized(currentOwnIdentities) { currentOwnIdentities.clear() - currentOwnIdentities.addAll(currentIdentities.keys) + currentOwnIdentities.addAll(onlyTrustedByAll.keys) } } catch (wote1: WebOfTrustException) { logger.log(Level.WARNING, "WoT has disappeared!", wote1)