title: XMPP block messages
body: <p>I am trying to block communications in my XMPP client (Built on top of strophe.js). The problem is it only blocks my messages to a contact I am trying to "mute" BUT doesn't block any incoming messages from that contact.</p>
  
  <p>Here is the logic (based on <a href="http://xmpp.org/rfcs/rfc3921.html#privacy" rel="nofollow">http://xmpp.org/rfcs/rfc3921.html#privacy</a>):</p>
  
  <p>1) Add "bill@domain.me" to my "block" list</p>
  
  <pre><code>var recipient = "bill@domain.me"
  var block = $iq({type: 'set'}).c('query', {xmlns: 'jabber:iq:privacy'}).
  c('list', {name: 'block'}).
  c('item', {type: 'jid', value: recipient, action: 'deny', order: 1}).
  c('message');
  </code></pre>
  
  <p>2) Make this list active</p>
  
  <pre><code>var setListActive = $iq({type: 'set'}).c('query', {xmlns: 'jabber:iq:privacy'}).c("active", {name: "block"});           
  SGN.connection.sendIQ(setListActive);
  </code></pre>
  
  <p>What could be the problem?</p>