MUC: MAX HISTORY FETCH SIZE seems to be 20 regardless of the configuration setting done during MUC create
I am using SMACK API on the client side. I am creating a MUC chat room with form data where i set the muc#maxhistoryfetch to 101 (eg: submitForm.setAnswer("muc#maxhistoryfetch", "101"); I printed the submitted form and verified that it's getting set to 100 in the call.
Now, regardless of what value I set, I seem to only get 20 messages (from history) when a new user joins the MUC room. I checked the server settings..and there was no setting in the init.properties (not sure what the default value is), so I went ahead and made an entry in init.properties file
despite this, I still see only 20 messages being sent to the user. What am i missing here?. Also, logging it set to on, where does the server log the muc messages?
FYI - my sent packets (see the 101 value for muc#maxhistoryfetch)
My init.properties settings are:-
Added by Bartosz Malkowski over 4 years ago
muc-max-history-size is +maximum+ history items you can +ask+!
If you enter to room with:
<presence firstname.lastname@example.org/pda' id='n13mt3l' email@example.com/thirdwitch'> <x xmlns='http://jabber.org/protocol/muc'> <history since='1970-01-01T00:00:00Z'/> </x> </presence>
you will see up to 101 latest messages.
If you don't ask for history you will get 20 latest messages.