Ignore messages sent to a different resource
This commit is contained in:
parent
ba85e0733f
commit
292d4a1bc9
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user