Commit edbf6d10 authored by Semyon's avatar Semyon

Merge pull request #1 from isotherm/XEP-0280

onPacket and getChat expect to receive a bare JID.
parents 7e15d03e 295df262
...@@ -495,7 +495,7 @@ public class MessageManager implements OnLoadListener, OnPacketListener, ...@@ -495,7 +495,7 @@ public class MessageManager implements OnLoadListener, OnPacketListener,
return; return;
} }
String companion = message.getFrom(); String companion = Jid.getBareAddress(message.getFrom());
boolean processed = false; boolean processed = false;
for (AbstractChat chat : chats.getNested(account).values()) { for (AbstractChat chat : chats.getNested(account).values()) {
if (chat.onPacket(companion, message)) { if (chat.onPacket(companion, message)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment