You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tried to implement message delivery ack requests and every time, requestAcknowledgement function was throwing error from line 230.
Upon investigating found out that xmlOutput function seems to not handle properly element tag name detection. Because of that, _unacknowledgedStanzas array is always empty
xmlOutput: function (elem) {
// elem is a HTMLElement with iq, presence or message as root element
var child;
for (var i = 0; i < elem.children.length; i++) {
child = elem.children[i];
// this if will never be true because iq, presence and message
// are never child elements, they are root elements
if (Strophe.isTagEqual(child, 'iq') ||
Strophe.isTagEqual(child, 'presence') ||
Strophe.isTagEqual(child, 'message')) {
this._increaseSentStanzasCounter(child);
}
}
return this._originalXMLOutput.call(this._c, elem);
},
As a workaround, I wrapped initial elem in another HTMLElement and it seems to be working that way. Is this the intended way or am I missing something?
The text was updated successfully, but these errors were encountered:
Tried to implement message delivery ack requests and every time,
requestAcknowledgement
function was throwing error from line 230.Upon investigating found out that
xmlOutput
function seems to not handle properly element tag name detection. Because of that,_unacknowledgedStanzas
array is always emptyAs a workaround, I wrapped initial elem in another HTMLElement and it seems to be working that way. Is this the intended way or am I missing something?
The text was updated successfully, but these errors were encountered: