1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-30 02:02:06 +01:00

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

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;