mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-23 02:58:00 +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;
|
||||
Chat chat;
|
||||
if (message.getThread() == null) {
|
||||
chat = getUserChat(StringUtils.parseBareAddress(message.getFrom()));
|
||||
chat = getUserChat(message.getFrom());
|
||||
}
|
||||
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()));
|
||||
chat = getUserChat(message.getFrom());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue