Menu

#5 Contact List removal for IncomingREM for RL

open
nobody
None
5
2007-12-25
2007-12-25
No

Hi

When an contact is not on any list any more, it should be removed from contact list.

When an REM message is received, the contact is removed from the contact list, if and only if the actual list is not RL. If the case of RL the contact is left in the list.

The patch below corrects this.

Regards,
Steffen

Index: L:/Projekte/osiris4/dev/JML/src/net/sf/jml/protocol/incoming/IncomingREM.java

--- L:/Projekte/osiris4/dev/JML/src/net/sf/jml/protocol/incoming/IncomingREM.java (revision 81)
+++ L:/Projekte/osiris4/dev/JML/src/net/sf/jml/protocol/incoming/IncomingREM.java (working copy)
@@ -102,6 +102,9 @@
contact.setInList(MsnList.RL, false);
((AbstractMessenger) session.getMessenger())
.fireContactRemovedMe(contact);
+ if (contact.getListNumber() == 0) { //Not in any group, delete from contact list
+ contactList.removeContactByEmail(contact.getEmail());
+ }
}
} else {
MsnContactImpl contact;

Discussion


Log in to post a comment.