aksonov / react-native-xmpp

XMPP library for React Native (iOS and Android native support)
BSD 2-Clause "Simplified" License
305 stars 96 forks source link

Chat History In Android #111

Open chins25 opened 5 years ago

chins25 commented 5 years ago

Hi,

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

`

user1@serverdomain.com

`

and, I am receiving following data,

{"from":"MyUser@serverdomain.com","body":null,"src":"<message to='MyUser@serverdomain.com/3fb36b4ca0a5c' from='MyUser@serverdomain.com'><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 .