mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-16 12:12:06 +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 {
|
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) {
|
||||||
|
|
Loading…
Reference in a new issue