MUC History Stenza

Hi All,

I am having some problem with the group joining. I required a specific number of messages to be downloaded to client application. So i am sending joining presences with the history stanza,

But i am not getting the correct number of messages in all the cases, In some rooms it work but in some cases it return unknown number of messages to the client application.

Please help me if any one else get the same problem.


with regards
Harminder Singh