doc/asmack-beem/beem_patches/50-fix-chatmanager.patch
author Da Risk <darisk972@gmail.com>
Thu, 27 May 2010 01:27:29 +0200
changeset 755 de343f195f37
parent 694 cffbce08906d
child 797 fbd3585af53e
permissions -rw-r--r--
Add an equals method to Contact. A contact is equals to an other if they got the same bare Jid.

--- ../../../src/smack/org/jivesoftware/smack/ChatManager.java	2010-02-23 19:27:26.000000000 +0100
+++ org/jivesoftware/smack/ChatManager.java	2010-02-23 19:37:47.000000000 +0100
@@ -111,7 +111,9 @@
                     	chat = getUserChat(message.getFrom());
                     }
                 }
-
+		if (chat == null) {
+                	chat = getUserChat(StringUtils.parseBareAddress(message.getFrom()));
+		}
                 if(chat == null) {
                     chat = createChat(message);
                 }