title: Strophe add Roster Contact
body: <p>i am currently working on a 'Add Roster Contact" functionality.</p>
  
  <p><strong>1) I add a new Contact to my Roster with:</strong></p>
  
  <pre><code>var iq = $iq({type: "set"}).c("query", {xmlns: "jabber:iq:roster"}).c("item"  {jid:"test@hostname.de/test",name:"test"});
  Chat.connection.sendIQ(iq);
  </code></pre>
  
  <p>The Contact is added successfully to my Roster.</p>
  
  <p><strong>2) Send presence stanza of type 'subscribe' to the new contact ('test'):</strong></p>
  
  <pre><code>var subscribe = $pres({to: test@hostname.de/test, type: "subscribe"});
  Chat.connection.send(subscribe);
  </code></pre>
  
  <p>That works, but not every time:</p>
  
  <p>When the person i am adding to my roster ('test') <strong>has
  currently no active session (is not logged in)</strong>, i get a
  subscription type of 'none' for the sender, and also
  a subscription type of 'none' for 'test'.</p>
  
  <p><strong>So:</strong></p>
  
  <p>Receiver 'Test':  Subscription 'None' </p>
  
  <p>Sender 'me': Subscription 'None'</p>
  
  <p>When the person iam adding to my roster has an active
  session, the expected subscription-types 'to' and 'from' are successfully set.</p>
  
  <p><strong>Any idea ?</strong></p>