Improved logic to find correct chat. If search for threadID fails then fallback to sender of message.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@6319 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2006-12-05 18:07:35 +00:00 committed by gato
parent 642967adbf
commit 5273e6c73d
1 changed files with 4 additions and 0 deletions

View File

@ -106,6 +106,10 @@ public class ChatManager {
}
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()));
}
}
if(chat == null) {