From a347598a586c97fca1976b4d9032ff8702730dba Mon Sep 17 00:00:00 2001 From: Derek DeMoro Date: Thu, 30 Aug 2007 20:32:27 +0000 Subject: [PATCH] Fixing groups not showing. git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@9040 b35dd754-fafc-0310-a699-88a17e54d16e --- src/java/org/jivesoftware/spark/ui/ContactList.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/java/org/jivesoftware/spark/ui/ContactList.java b/src/java/org/jivesoftware/spark/ui/ContactList.java index e7fceba0..5750104a 100644 --- a/src/java/org/jivesoftware/spark/ui/ContactList.java +++ b/src/java/org/jivesoftware/spark/ui/ContactList.java @@ -265,7 +265,7 @@ public final class ContactList extends JPanel implements ActionListener, Contact * * @param presence the user to update. */ - private void updateUserPresence(Presence presence) throws Exception { + private synchronized void updateUserPresence(Presence presence) throws Exception { if (presence.getError() != null) { // We ignore this. return; @@ -1656,6 +1656,7 @@ public final class ContactList extends JPanel implements ActionListener, Contact }); } else { + try { initialPresences.add(presence); } @@ -1663,7 +1664,7 @@ public final class ContactList extends JPanel implements ActionListener, Contact Log.error(e); } - int numberOfMillisecondsInTheFuture = 500; + int numberOfMillisecondsInTheFuture = 1000; presenceTimer.schedule(new TimerTask() { public void run() {