Skip to content

Commit

Permalink
[TEMP #292] Remove type arg from xmpp.msg().
Browse files Browse the repository at this point in the history
That function is only called once in the code, and
no type argument is given.
  • Loading branch information
cburschka committed Dec 22, 2015
1 parent 3fb58bf commit a47ea72
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions js/core/xmpp.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,15 @@ var xmpp = {
},

/**
* Wrapper for $msg() that fills in the sender JID and the room/nick JID.
* Wrapper for $msg() that fills in the sender JID and the target JID.
*
* @param {object} target: A target passed to xmpp.jid().
* @param {string} type: Optional; defaults to "chat" if a target is present,
* otherwise "groupchat".
*/
msg: function(target, type) {
msg: function(target) {
return $msg({
from: this.connection.jid,
to: this.jid(target),
type: type || (target ? 'chat' : 'groupchat')
type: (target ? 'chat' : 'groupchat')
});
},

Expand Down

0 comments on commit a47ea72

Please sign in to comment.