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

How to get MUC-Light room chat history #126

Open
himanshusehgal opened this issue Jan 19, 2017 · 0 comments
Open

How to get MUC-Light room chat history #126

himanshusehgal opened this issue Jan 19, 2017 · 0 comments

Comments

@himanshusehgal
Copy link

himanshusehgal commented Jan 19, 2017

Hi,
I am currently struggling to get Chat Histroy of a MUCLight Room using Strophe.js. I dont want to use the direct MUC plugin. I have used the below approaches:-

  1. Sending the below IQ, but no return in the callback:-
<iq type='set' id='mamget1' to='[email protected]'>
    <query xmlns='urn:xmpp:mam:1' queryid='f27' />
</iq>
  1. Sending the below presence but Handler not receiving anything:-
<presence from="jid" id="9855" to="roomJID" xmlns="jabber:client">
<x xmlns="http://jabber.org/protocol/muc">
<history maxstanzas="20"/>
</x>
</presence>

Please tell the correct approach,
Thanks in advance.

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