doc/asmack-beem/beem_patches/50-fix-chatmanager.patch
author Da Risk <darisk972@gmail.com>
Mon, 26 Jul 2010 01:21:28 +0200
changeset 794 5dd9d68b6ad3
parent 694 cffbce08906d
child 797 fbd3585af53e
permissions -rw-r--r--
Complete XEP-0115. see #286 Your capability is now calculate and send in each presence stanza. Still needs to use a disk cache to store the capabilities.

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