Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chat History In Android #111

Open
chins25 opened this issue Oct 30, 2018 · 0 comments
Open

Chat History In Android #111

chins25 opened this issue Oct 30, 2018 · 0 comments

Comments

@chins25
Copy link

chins25 commented Oct 30, 2018

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>user1@serverdomain.com</with> <set xmlns="http://jabber.org/protocol/rsm"/> </query> </iq>

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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant