1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 22:12:05 +01:00

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

View file

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