title: Enabling Stream Management in ejabberd server getting last message repeated
body: <p>I have a problem with Stream Management. I have added the following settings in my ejabberd.yml</p>
  
  <pre><code>stream_management: true
  resume_timeout: 5
  resend_on_timeout: true
  </code></pre>
  
  <p>The  function of stream management working fine. i got the all message after resumption of connection. The main issues  is before getting connection resumption, if client send me message in between then i got all in between message two times. How to manage queue on ejabberd server to work fine i.e. (how getting message in  sequence  as send) and avoid getting repeated message.</p>