mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-27 00:32:07 +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:
parent
ce323cb128
commit
4218c197f7
1 changed files with 2 additions and 2 deletions
|
@ -102,13 +102,13 @@ public class ChatManager {
|
||||||
Message message = (Message) packet;
|
Message message = (Message) packet;
|
||||||
Chat chat;
|
Chat chat;
|
||||||
if (message.getThread() == null) {
|
if (message.getThread() == null) {
|
||||||
chat = getUserChat(StringUtils.parseBareAddress(message.getFrom()));
|
chat = getUserChat(message.getFrom());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
chat = getThreadChat(message.getThread());
|
chat = getThreadChat(message.getThread());
|
||||||
if (chat == null) {
|
if (chat == null) {
|
||||||
// Try to locate the chat based on the sender of the message
|
// Try to locate the chat based on the sender of the message
|
||||||
chat = getUserChat(StringUtils.parseBareAddress(message.getFrom()));
|
chat = getUserChat(message.getFrom());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue