android asmack+openfire即时通讯接收消息时有两个message节点
采用asmack作为android的客户端与Spark即时通讯时,openfire作为通讯服务器,现遇到如下情况:android客户端在接收Spark的信息时接收到两个message,这种情况是否正常,如果正常该怎么解析,如果不正常需要做哪些修改???具体接收报文如下:
<message id="bL9fN-33" to="jack@test/Smack" from="tom@test/Spark" type="chat"><body>hi jack</body><thread>Pk85n9</thread><x xmlns="jabber:x:event"><offline/><composing/></x></message><message id="bL9fN-34" to="jack@test/Smack" from="tom@test/Spark" type="chat"><thread>TP1BA0</thread><active xmlns="http://jabber.org/protocol/chatstates"/></message>