From 8d40d5f10875578aed15e57c5d6b4e0aa5b2c6a2 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Wed, 8 Aug 2018 09:43:32 +0200 Subject: [PATCH] Bugfix. Stanza passed in as 2nd parameter --- dist/converse.js | 2 +- src/converse-mam.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/converse.js b/dist/converse.js index ceccb0b6e..f9eeab7c1 100644 --- a/dist/converse.js +++ b/dist/converse.js @@ -74563,7 +74563,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_ }); - _converse.onMAMError = function (iq) { + _converse.onMAMError = function (model, iq) { if (iq.querySelectorAll('feature-not-implemented').length) { _converse.log("Message Archive Management (XEP-0313) not supported by this server", Strophe.LogLevel.WARN); } else { diff --git a/src/converse-mam.js b/src/converse-mam.js index a2d50f4a1..65e51888d 100644 --- a/src/converse-mam.js +++ b/src/converse-mam.js @@ -320,7 +320,7 @@ message_archiving_timeout: 8000, // Time (in milliseconds) to wait before aborting MAM request }); - _converse.onMAMError = function (iq) { + _converse.onMAMError = function (model, iq) { if (iq.querySelectorAll('feature-not-implemented').length) { _converse.log( "Message Archive Management (XEP-0313) not supported by this server",