Hope you are doing well.
I have been using Openfire for creating chat support application. For which I have use cases like sending messages to the chatroom like “Next available agent will assist you shortly” or “Agent1 has joined the chat room” etc. We call these messages system messages. I have enabled the monitoring plugin. But i notice that even after enabling the message archiving for one-one chats, group chats and group stanzas, the messages that I sent for the above mentioned system message use case, are not getting archived or getting dumped into the ofMessageArchive table. Other messages sent using clients like converse are dumped correctly.
To give more context, I am using the RestAPI plugin and have exposed an API for our use case. This API is invoked from one of our other services and will then use mucRoom.sendPublicMessage() to send this system message. The send role which is accepted by this method is set as the room’s role itself. Long story short, we send these system messages from the backend itself using the MucRoom . sendPublicMessage().
When a user joins a chat room, all history messages of that room including the above mentioned system messages have to be displayed to him. But because of this issue, system messages are not shown to a user when he joins the chat room.
Thanks a lot in advance.