def deliver_deferred(jid, message, type)
      msg = {:to => jid, :message => message, :type => type}
      queue(:pending_messages) << [msg]
    end
def deliver_deferred(jid, message, type)
      msg = {:to => jid, :message => message, :type => type}
      queue(:pending_messages) << [msg]
    end
Queue messages for delivery once a user has accepted our authorization
 request. Works in conjunction with the deferred delivery thread.

 You can use this method if you want to manually add friends and still
 have the message queued for later delivery.