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.
Merge pull request #1 from isotherm/XEP-0280

onPacket and getChat expect to receive a bare JID.