[jitsi-dev] Small funny patch [duplication of contact on adding myself with other jabber client]


#1

Hello!
I have some problem with jabber on jitsi (the latest SVN revision). If I
try to add myself from other client (pidgin) then I see in my contact list
the strange not clickable group "NotInContactList". And the new contact
duplicates. The second copy of the contact is not removable, but after the
jitsi restarting it shows only one right contact.
So it is funny, but with the next patch jabber on jitsi for me works only
better.

Index:
src/net/java/sip/communicator/impl/protocol/jabber/ServerStoredContactListJabberImpl.java

···

===================================================================
---
src/net/java/sip/communicator/impl/protocol/jabber/ServerStoredContactListJabberImpl.java (revision
9145)
+++
src/net/java/sip/communicator/impl/protocol/jabber/ServerStoredContactListJabberImpl.java (working
copy)
@@ -493,7 +493,7 @@

            //Check whether a volatile group already exists and if not create
            //one
- ContactGroupJabberImpl theVolatileGroup = getNonPersistentGroup();
+ /*ContactGroupJabberImpl theVolatileGroup =
getNonPersistentGroup();

            //if the parent group is null then add necessary create the group
            if (theVolatileGroup == null)
@@ -515,7 +515,8 @@
                theVolatileGroup.addContact(newVolatileContact);

                fireContactAdded(theVolatileGroup, newVolatileContact);
- }
+ }*/
+ System.out.println("Sorry, but I will not add volatile contact");

            return newVolatileContact;
        }

--
Nikolay Krivchenkov aka unDEFER
I want to believe... in unDE.su
registered Linux user #360474
Don't worry, I can read OpenOffice.org/Libre Office/Lotus Symphony
documents