react-native-xmpp icon indicating copy to clipboard operation
react-native-xmpp copied to clipboard

Chat History In Android

Open chins25 opened this issue 7 years ago • 0 comments

Hi,

I have implemented chat with Smack 4.1.0 for React Native.I am sending a following stanza for Android,

<iq id="downloadMessages" type="get"> <query xmlns="urn:xmpp:mam:tmp"> <with>[email protected]</with> <set xmlns="http://jabber.org/protocol/rsm"/> </query> </iq>

and, I am receiving following data,

{"from":"[email protected]","body":null,"src":"<message to='[email protected]/3fb36b4ca0a5c' from='[email protected]'><thread>ThreadID</thread><result xmlns='urn:xmpp:mam:tmp'><archived></archived><request></request><delay></delay><stanza-id></stanza-id><active></active><body>My MESSAGE</body></result></message>","subject":null,"thread":"ThreadId"}

When I get a chat history, I do not get the JID and I get only my JID for all messages. SO , in this case I am unable to get the name of the person (JID) with whom I have chatted. Any help will be appreciated.

FYI for IOS it is working fine .

chins25 avatar Oct 30 '18 14:10 chins25