Skip to content

Conversation

@krille-chan
Copy link

Added the possibility to use urn:xmpp:mam:1 and added an onError method.

Added the possibility to use urn:xmpp:mam:1 and added an onError method.
Copy link
Contributor

@jcbrand jcbrand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the pull request. Please see my two review comments.

*
*/
import { $iq, Strophe } from 'strophe.js';
//import { $iq, Strophe } from 'strophe.js'; NOTE: Can make issues on some systems
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can't just comment this out...

Either create a ticket where you explain what the problem is, or make a separate pull request for specifically this issue.

iq.c('field',{var:'FORM_TYPE', type:'hidden'}).c('value').t(Strophe.NS.MAM).up().up();
var ns = Strophe.NS.MAM;
if ( options.oldVersion )
ns = 'urn:xmpp:mam:1';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you introduce the oldVersion option? Doesn't look like it's documented anywhere. Additionally, it's unnecessarily vague. Instead of oldVersion, perhaps the actual version number could be specified?

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

Successfully merging this pull request may close these issues.

2 participants