doc/asmack-beem/beem_patches/50-fix-chatmanager.patch
author Da Risk <darisk972@gmail.com>
Sun, 07 Mar 2010 07:31:24 +0100
changeset 702 f30ae9c4051e
parent 694 cffbce08906d
child 797 fbd3585af53e
permissions -rw-r--r--
Fix a little bug on connection. There should be only one instance of the Login activity but launchMode singleTask and singleInstance make bad behaviors. Standard should be just fine.

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