title: strophe.js group invite - handler not triggered
body: <p>I have problem with my invitation handler. It is never fired. I can see invitation from group:</p>
  
  <pre><code>&lt;body xmlns='http://jabber.org/protocol/httpbind'&gt;
          &lt;message xmlns="jabber:client" from="epthi_795@conference.188.2.16.19" to="nikoladerikonjic@188.2.16.19"&gt;
              &lt;x xmlns="http://jabber.org/protocol/muc#user"&gt;
                  &lt;invite from="sanjicabjelica@188.2.16.19"&gt;
                      &lt;reason&gt;Please join me in conference.&lt;/reason&gt;
                  &lt;/invite&gt;
              &lt;/x&gt;
              &lt;x xmlns="jabber:x:conference" jid="epthi_795@conference.188.2.16.19"/&gt;
          &lt;/message&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>but on_message handler is not fired. Because no type is defined.</p>
  
  <p>When I put <code>Chat.connection.addHandler(Chat.on_message,null, "message", null,null,null,null);</code></p>
  
  <p>Invitations is shown but then all messages group or chat are handled by this. I want to me able to  have </p>
  
  <pre><code>Chat.connection.addHandler(Chat.on_message,null, "message", "chat");
  Chat.connection.addHandler(Chat.on_message,null, "message", "groupchat");
  </code></pre>
  
  <p>for separate type of messages.</p>
  
  <p>I am going around i circles for two days with this. Help!?</p>
  
  <p>In other words what to put in addHandler for messages that contain invite?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I have to put </p>
  
  <pre><code>Chat.connection.addHandler(Chat.on_message,null, "message"); 
  </code></pre>
  
  <p>before I did invite.</p>
  
  <p>I do not understand why is that? Does anyone has idea?</p>