Commit 3142ebbb authored by Javier Mellado's avatar Javier Mellado Committed by Javier Mellado

Force type comparison and documentation updates

parent 4fb99c0c
...@@ -4362,7 +4362,7 @@ ...@@ -4362,7 +4362,7 @@
*/ */
var id = iq.getAttribute('id'); var id = iq.getAttribute('id');
var from = iq.getAttribute('from'); var from = iq.getAttribute('from');
if (from && from !== "" && from != converse.connection.jid) { if (from && from !== "" && from !== converse.connection.jid) {
// Receiving client MUST ignore stanza unless it has no from or from = user's bare JID. // Receiving client MUST ignore stanza unless it has no from or from = user's bare JID.
converse.connection.send( converse.connection.send(
$iq({type: 'error', id: id, from: converse.connection.jid}) $iq({type: 'error', id: id, from: converse.connection.jid})
......
Changelog Changelog
========= =========
0.9.7 (Unreleased)
------------------
* #493 Refactor previous bugfix and now an event is emitted when a roster push event from server happens. [teseo]
0.9.6 (2015-10-12) 0.9.6 (2015-10-12)
------------------ ------------------
......
...@@ -773,6 +773,8 @@ Here are the different events that are emitted: ...@@ -773,6 +773,8 @@ Here are the different events that are emitted:
+---------------------------------+---------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------+ +---------------------------------+---------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------+
| **roster** | When the roster is updated. | ``converse.listen.on('roster', function (event, items) { ... });`` | | **roster** | When the roster is updated. | ``converse.listen.on('roster', function (event, items) { ... });`` |
+---------------------------------+---------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------+ +---------------------------------+---------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------+
| **rosterPush** | When the roster receives a push event from server. E.g.: New entry in your buddy list. | ``converse.listen.on('rosterPush', function (event, items) { ... });`` |
+---------------------------------+---------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------+
| **statusChanged** | When own chat status has changed. | ``converse.listen.on('statusChanged', function (event, status) { ... });`` | | **statusChanged** | When own chat status has changed. | ``converse.listen.on('statusChanged', function (event, status) { ... });`` |
+---------------------------------+---------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------+ +---------------------------------+---------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------+
| **statusMessageChanged** | When own custom status message has changed. | ``converse.listen.on('statusMessageChanged', function (event, message) { ... });`` | | **statusMessageChanged** | When own custom status message has changed. | ``converse.listen.on('statusMessageChanged', function (event, message) { ... });`` |
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment