1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-26 16:22:06 +01:00

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
This commit is contained in:
guus 2010-01-11 23:32:21 +00:00
parent ce323cb128
commit 4218c197f7

View file

@ -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());
}
}