mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-23 04:22: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:
parent
642967adbf
commit
5273e6c73d
1 changed files with 4 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue