Commit 295df262 authored by Kirk Meyer's avatar Kirk Meyer

onPacket and getChat expect to receive a bare JID. This caused an exception at...

onPacket and getChat expect to receive a bare JID. This caused an exception at com.xabber.android.data.message.MessageManager.addChat(MessageManager.java:166) when xabber observed another presence send a message to a contact and that contact respond thereafter.
parent 7e15d03e
......@@ -495,7 +495,7 @@ public class MessageManager implements OnLoadListener, OnPacketListener,
return;
}
String companion = message.getFrom();
String companion = Jid.getBareAddress(message.getFrom());
boolean processed = false;
for (AbstractChat chat : chats.getNested(account).values()) {
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