From 4218c197f7f73cbcc055a7739b73e3c3e9d2eace Mon Sep 17 00:00:00 2001 From: guus Date: Mon, 11 Jan 2010 23:32:21 +0000 Subject: [PATCH] Do not fall back to bare JIDs if no threadIDs are available - use the JID as specified in the stanza instead. (SMACK-269). git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@11517 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/ChatManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/org/jivesoftware/smack/ChatManager.java b/source/org/jivesoftware/smack/ChatManager.java index ce9a21940..6f54e0a4a 100644 --- a/source/org/jivesoftware/smack/ChatManager.java +++ b/source/org/jivesoftware/smack/ChatManager.java @@ -102,13 +102,13 @@ public class ChatManager { Message message = (Message) packet; Chat chat; if (message.getThread() == null) { - chat = getUserChat(StringUtils.parseBareAddress(message.getFrom())); + chat = getUserChat(message.getFrom()); } else { chat = getThreadChat(message.getThread()); if (chat == null) { // Try to locate the chat based on the sender of the message - chat = getUserChat(StringUtils.parseBareAddress(message.getFrom())); + chat = getUserChat(message.getFrom()); } }