Commit 292d4a1b authored by JC Brand's avatar JC Brand

Ignore messages sent to a different resource

parent ba85e073
...@@ -3096,7 +3096,13 @@ ...@@ -3096,7 +3096,13 @@
var contact_jid, $forwarded, $received, $sent, var contact_jid, $forwarded, $received, $sent,
msgid = $message.attr('id'), msgid = $message.attr('id'),
chatbox, resource, roster_item, chatbox, resource, roster_item,
message_from = $message.attr('from'); message_from = $message.attr('from'),
message_to = $message.attr('to');
if(!_.contains([converse.connection.jid, converse.bare_jid], message_to)) {
// Ignore messages sent to a different resource
return true;
}
if (message_from === converse.connection.jid) { if (message_from === converse.connection.jid) {
// FIXME: Forwarded messages should be sent to specific resources, // FIXME: Forwarded messages should be sent to specific resources,
// not broadcasted // not broadcasted
......
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