Failed to get previous group chat history using ruby ​​xmpp4r

I am using the ruby ​​xmpp4r library to implement a chat application with multiple users with an openfire server. I have successfully created a chat room on an openfire server. If a user joins a chat with openfire credentials, he does not return the previous group chat history, he only returns a few messages for which I use the add_message_callback() method.

The following is a description of the openfire group chat history:
** Show the entire chat history (Show the entire chat history to users entering the room.) - True

What am I missing here? Does anyone have some sample code to get the previous group history?

+7
source share
1 answer

I started the Wildfire server (successor to openfire), this parameter seems server-side. In the wildfire control panel, it is controlled in the "Group chat"> "History settings" section. Here are the following options:

Do not show history - do not show chat history to users entering the room.

Show the entire chat history. Show the entire chat history to users entering the room.

Show a certain number of messages. Show a certain number of recent chat messages. Use the box below to indicate this number.

+1
source

All Articles