We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is there a way to retrieve messages from two chats at the same time?
I try
[jid1, jid2].forEach(function (jid) { connect.mam.query(Strophe.getBareJidFromJid(connect.jid), getQuery(jid)); }); function getQuery(jid) { return { with: jid + '@domain.com', max: 5, before: '', onMessage: function (message) { // my code }, onComplete: function (response) { // my code } }; }
Also tried using onCompleted callback
function getQuery(jid) { return { with: jid + '@domain.com', max: 5, before: '', onMessage: function (message) { // my code }, onComplete: function (response) { // my code connect.mam.query(Strophe.getBareJidFromJid(connect.jid), getQuery(nextJID)); } }; }
This two ways to trying to do the same thing results as duplicates message from the ejabberd server.
I am using Ejabberd Server and Strophejs on the client
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is there a way to retrieve messages from two chats at the same time?
I try
Also tried using onCompleted callback
This two ways to trying to do the same thing results as duplicates message from the ejabberd server.
I am using Ejabberd Server and Strophejs on the client
The text was updated successfully, but these errors were encountered: