1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-10 17:49:38 +02:00

Update to track last chat state of a chat so that the user is not updated more than once, and the XEP is not violated.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@6711 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Alex Wenckus 2007-01-17 19:36:45 +00:00 committed by alex
parent 1426964334
commit da9a0e4543
3 changed files with 37 additions and 6 deletions

View file

@ -169,4 +169,12 @@ public class Chat {
listener.processMessage(this, message);
}
}
@Override
public boolean equals(Object obj) {
return obj instanceof Chat
&& threadID.equals(((Chat)obj).getThreadID())
&& participant.equals(((Chat)obj).getParticipant());
}
}