I have an issue and I was wondering if anyone could help me. We have an Openfire server set up. We are dynamically creating chat rooms on the fly for customer server chats with an agent. So we create a room dynamically for each conversation. We have an automated process that cleans up those rooms after they are empty. What we need now is the ability to sometimes clean a room on demand if one person never closes their browser and leaves the room open for a long time. So our end goal is to have the ability to empty a room of users so our clean up process will find the room and execute (that process does other logging events that we need, so just deleting the room is not optimal, it would be best if we can empty it and let the normal process clean it up).
We would like to have the ability to remove users from the room, I am trying to make the WebAPI call to the delete user from a chatroom api but it doesn't seem to be working. The call requires a "role" in the path, ours users have a current role of "participant" but that is not a valid option for this API. When we call it with "members" it does not find our users, I am guessing some here but it seems like our users are not members, but visitors? Is there a way to remove them from the room if they are not members? Or are all users in a room members and am I making some other mistake? Can we make them members?
This is not our first API call, we can call others with no issues, in fact prior to removing the members we are calling get users to find all the users in the room. Our end goal really is an empty room.
Any help would be appreciated.