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

onError and Support for mam 1 #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

onError and Support for mam 1 #6

wants to merge 1 commit into from

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.

@@ -9,7 +9,7 @@
* http://xmpp.org/extensions/xep-0313.html
*
*/
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