From: David ‘Bombe’ Roden Date: Fri, 1 Apr 2011 10:34:31 +0000 (+0200) Subject: Actually check for the Sone’s identities. X-Git-Tag: 0.6^2~31 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=33db61361ab56655589871c9fc83dca3b29e37f9;p=Sone.git Actually check for the Sone’s identities. --- diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index e0373e9..7545d98 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -525,7 +525,7 @@ public class Core implements IdentityListener, UpdateListener { * @return {@code true} if the target Sone is trusted by the origin Sone */ public boolean isSoneTrusted(Sone origin, Sone target) { - return trustedIdentities.containsKey(origin) && trustedIdentities.get(origin.getIdentity()).contains(target); + return trustedIdentities.containsKey(origin.getIdentity()) && trustedIdentities.get(origin.getIdentity()).contains(target.getIdentity()); } /**