mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
1) Added Yahoo transport support.
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@4690 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
@ -30,6 +30,8 @@ import org.jivesoftware.spark.util.log.Log;
|
||||
import org.jivesoftware.sparkimpl.preference.chat.ChatPreference;
|
||||
import org.jivesoftware.sparkimpl.preference.chat.ChatPreferences;
|
||||
|
||||
import javax.swing.Icon;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Iterator;
|
||||
@ -292,4 +294,15 @@ public class ChatManager {
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public Icon getPresenceIconForContactHandler(Presence presence) {
|
||||
for (ContactItemHandler handler : contactItemHandlers) {
|
||||
Icon icon = handler.useIcon(presence);
|
||||
if (icon != null) {
|
||||
return icon;
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user