Tout en récupérant l'historique des chats, je ne reçois pas l'historique des deux users de Openfire

J'ai récupéré l'histoire de openfire en installant le plugin open fire dans le feu ouvert et essayé ce code.

let iq1 = DDXMLElement(name: "iq") iq1.addAtsortingbute(withName: "type", ssortingngValue: "get") iq1.addAtsortingbute(withName: "id", ssortingngValue: "0") let resortingeve = DDXMLElement(name: "resortingeve", xmlns: "urn:xmpp:archive") resortingeve?.addAtsortingbute(withName: "with", ssortingngValue: "[email protected]") let set = DDXMLElement(name: "set", xmlns: "http://jabber.org/protocol/rsm") let max = DDXMLElement(name: "max", ssortingngValue: "50") iq1.addChild(resortingeve!) resortingeve?.addChild(set!) set?.addChild(max) stream?.send(iq1 ) 

Maintenant, je ne reçois pas l'histoire de Both Side. voici le résultat que je reçois.

 <iq xmlns="jabber:client" type="result" id="0" to="[email protected]/5qsinh1syg"> <chat xmlns="urn:xmpp:archive" with="[email protected]" start="2017-02-07T06:28:33.691Z"> <from secs="0"> <body>hello</body> </from> <from secs="405"> <body>hiii</body> </from> <from secs="580"> <body>Hey</body> </from> <from secs="599"> <body>HooooE</body> </from> <from secs="628"> <body>hOo</body> </from> <from secs="907"> <body>Raman here</body> </from> <from secs="931"> <body>Raman here ONE</body> </from> <from secs="1273"> <body>Raman here</body> </from> <from secs="1558"> <body> Raman from SPark </body> </from> <from secs="1571"> <body> Raman from SPark One</body> </from> <from secs="1782"> <body>Raman from SPark </body> </from> <from secs="2651"> <body>Raman FiVE</body> </from> <from secs="2810"> <body>Raman Three</body> </from> <from secs="2810"> <body>Raman FOur</body> </from> <from secs="3534"> <body>RAMAN SIX</body> </from> <from secs="4105"> <body>Raman OKK</body> </from> <from secs="4113"> <body>OKKK l</body> </from> <from secs="4130"> <body>UST</body> </from> <set xmlns="http://jabber.org/protocol/rsm"> <first index="0">0</first> <last>17</last> <count>18</count> </set> </chat> </iq> 

C'est tout le message de RAMAN pas bentick car ce deux user impliqué dans le chat tout en obtenant l'histoire je reçois seulement le message de RAMAN. pas BENTICk Comment get l'histoire des deux côté user.

S'il vous plaît aider.

J'ai mis en œuvre la même chose pour get le message de et en envoyant l'iq donné Et j'obtiens le bon résultat.

 let iQ = DDXMLElement.element(withName: "iq") as! DDXMLElement iQ.addAtsortingbute(withName: "type", ssortingngValue: "get") iQ.addAtsortingbute(withName: "id", ssortingngValue: (xmppHandler.xmppStream?.generateUUID())!) let resortingeve = DDXMLElement(name: "resortingeve", xmlns: "urn:xmpp:archive") resortingeve?.addAtsortingbute(withName: "with", ssortingngValue: "\(JID!)@\(Utility.hostname)") let set = DDXMLElement.element(withName: "set") as! DDXMLElement set.addAtsortingbute(withName: "xmlns", ssortingngValue: "http://jabber.org/protocol/rsm") let max = DDXMLElement.element(withName: "max") as! DDXMLElement max.ssortingngValue = "10" max.addAtsortingbute(withName:"xmlns", ssortingngValue: "http://jabber.org/protocol/rsm") iQ.addChild(resortingeve!) resortingeve?.addChild(set) set.addChild(max as DDXMLNode) xmppHandler.xmppStream?.send(iQ) <iq type="get" id="7705EEC5-3385-42D4-B748-B39C204ADB90"><resortingeve xmlns="urn:xmpp:archive" with="[email protected]"><set xmlns="http://jabber.org/protocol/rsm"><max xmlns="http://jabber.org/protocol/rsm">10</max></set></resortingeve></iq> 

Réponse

  <iq xmlns="jabber:client" type="result" id="7705EEC5-3385-42D4-B748-B39C204ADB90" to="[email protected]/Smack"> <chat xmlns="urn:xmpp:archive" with="[email protected]" start="2017-02-28T09:55:27.068Z"> <from secs="0" jid="[email protected]"> <body>Hiii rajeev</body> </from> <to secs="52"> <body>Hi How r u</body> </to> <from secs="15" jid="[email protected]"><body>I am good</body></from> <to secs="8"><body>What abt u</body></to> <to secs="169"><body>Hello testing chat</body></to> <from secs="10" jid="[email protected]"><body>Good</body></from> <from secs="5" jid="[email protected]"><body>Continue </body></from> <to secs="834"><body>Ok </body></to> <to secs="8"><body>Nice chat </body></to> <from secs="232" jid="[email protected]"><body>Heelo</body></from> <set xmlns="http://jabber.org/protocol/rsm"><first index="0">0</first> <last>9</last><count>574</count></set></chat></iq>