title: Getting All group messages back when connecting to xmpp from ios and android end
body: <p>I am using <strong>openfire version 4.0.1</strong></p>
  <p>Using openfire <a href="https://github.com/gidkom/php-openfire-restapi" rel="nofollow noreferrer">Rest Api</a> i have created group chat rooms in the service servicename.xx.xx.xxx.xxx.</p>
  <p>Now rooms are created what is happening , once user connect to the xmpp server all the group messages are receiving back to that user which makes application stuck.</p>
  <p>I heared about Group Chat History Settings under group chat settings.</p>
  <p><a href="https://i.stack.imgur.com/reiQw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/reiQw.png" alt="enter image description here" /></a></p>
  <p>I have truncate all the group messages which is stored in <strong>ofMessageArchive</strong> table of openfire.</p>
  <p>Still, when user connects to the xmpp that user will receive all the messages of all the group which he is member with even though i have cleared all the messages from ofMessageArchive table.</p>
  <p>How to prevent those messages which are comming through xmpp?</p>
  <p>Any Help would appriciate.</p>