aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/impl/protocol/yahoo/OperationSetPersistentPresenceYahooImpl.java
diff options
context:
space:
mode:
authorDamian Minkov <damencho@jitsi.org>2007-01-13 10:47:34 +0000
committerDamian Minkov <damencho@jitsi.org>2007-01-13 10:47:34 +0000
commit8ac3b03cc18a5b519b6cd564c1b03e29bd888cc8 (patch)
tree5675f930141564daa5642d15f0316ab63a813fc1 /src/net/java/sip/communicator/impl/protocol/yahoo/OperationSetPersistentPresenceYahooImpl.java
parent72686db9291753b65c896eede9a45e9aac435ad9 (diff)
downloadjitsi-8ac3b03cc18a5b519b6cd564c1b03e29bd888cc8.zip
jitsi-8ac3b03cc18a5b519b6cd564c1b03e29bd888cc8.tar.gz
jitsi-8ac3b03cc18a5b519b6cd564c1b03e29bd888cc8.tar.bz2
Fix adding friends with @yahoo.com suffix.
Diffstat (limited to 'src/net/java/sip/communicator/impl/protocol/yahoo/OperationSetPersistentPresenceYahooImpl.java')
-rw-r--r--src/net/java/sip/communicator/impl/protocol/yahoo/OperationSetPersistentPresenceYahooImpl.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/net/java/sip/communicator/impl/protocol/yahoo/OperationSetPersistentPresenceYahooImpl.java b/src/net/java/sip/communicator/impl/protocol/yahoo/OperationSetPersistentPresenceYahooImpl.java
index 5343a5f..48acfc8 100644
--- a/src/net/java/sip/communicator/impl/protocol/yahoo/OperationSetPersistentPresenceYahooImpl.java
+++ b/src/net/java/sip/communicator/impl/protocol/yahoo/OperationSetPersistentPresenceYahooImpl.java
@@ -615,10 +615,6 @@ public class OperationSetPersistentPresenceYahooImpl
if(! (parent instanceof ContactGroupYahooImpl) )
throw new IllegalArgumentException(
"Argument is not an yahoo contact group (group=" + parent + ")");
-
- if(contactIdentifier.indexOf("@") > -1 )
- contactIdentifier =
- contactIdentifier.substring(0, contactIdentifier.indexOf("@"));
ssContactList.addContact((ContactGroupYahooImpl)parent, contactIdentifier);
}
@@ -1089,7 +1085,7 @@ public class OperationSetPersistentPresenceYahooImpl
ContactYahooImpl contact =
(ContactYahooImpl)evt.getSourceContact();
- if(!contact.isPersistent())
+ if(!contact.isPersistent() || !contact.isResolved())
return;
handleContactStatusChange(contact,