doc/asmack-beem/beem_patches/50-fix-chatmanager.patch
author Da Risk <darisk972@gmail.com>
Wed, 09 Jun 2010 00:36:33 +0200
changeset 765 3eb5041d6821
parent 694 cffbce08906d
child 797 fbd3585af53e
permissions -rw-r--r--
Remove stable ids which is not sure on contactList

--- ../../../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);
                 }