From e06c1f5aa36eaa550d9b291e3e0e128557830e70 Mon Sep 17 00:00:00 2001 From: Ivan Rubio Date: Fri, 20 Mar 2015 09:17:30 +0100 Subject: [PATCH] fixed up method call when extended_presence property is set in join function --- muc/strophe.muc.coffee | 2 +- muc/strophe.muc.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/muc/strophe.muc.coffee b/muc/strophe.muc.coffee index 2e258f2..a740e81 100644 --- a/muc/strophe.muc.coffee +++ b/muc/strophe.muc.coffee @@ -56,7 +56,7 @@ Strophe.addConnectionPlugin 'muc', msg.cnode Strophe.xmlElement("password", [], password) if extended_presence? - msg.up.cnode extended_presence + msg.up().cnode extended_presence # One handler for all rooms that dispatches to room callbacks @_muc_handler ?= @_connection.addHandler (stanza) => diff --git a/muc/strophe.muc.js b/muc/strophe.muc.js index aa53cfb..5fb0e6f 100644 --- a/muc/strophe.muc.js +++ b/muc/strophe.muc.js @@ -64,7 +64,7 @@ msg.cnode(Strophe.xmlElement("password", [], password)); } if (extended_presence != null) { - msg.up.cnode(extended_presence); + msg.up().cnode(extended_presence); } if (this._muc_handler == null) { this._muc_handler = this._connection.addHandler((function(_this) {