A real fix for SMACK-229

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@8480 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Alex Wenckus 2007-06-05 20:30:22 +00:00 committed by alex
parent 049ca8975e
commit 560e891cec
1 changed files with 2 additions and 2 deletions

View File

@ -144,8 +144,8 @@ public class ChatStateManager {
private boolean updateChatState(Chat chat, ChatState newState) {
ChatState lastChatState = chatStates.get(chat);
if (lastChatState == null || lastChatState != newState) {
chatStates.put(chat, lastChatState);
if (lastChatState != newState) {
chatStates.put(chat, newState);
return true;
}
return false;