Hi,
I need to have private channels for "groups" of users.
The solution provided by PhpFreeChat for this is to have an external detection of which kind/group the user is/belongs to and set the parameters "channel" and "frozen_channel" correctly.
So I am using the utChat joomla integration (latest version pfc 1.0-beta11) to take care of user grouping and restriction part.
This way I can detect which group the user belongs to and set the right data.
Now here comes the problem.
When I connect the first time, with the first user, the right channels are opened. So far, so good...
When the second (and nexts) user connects the rooms that shows up is the ones used by the first user. This happens even if the channel/frozen_channel set for this user is different.
This always happens.
I have seen other posts about similar problems and that the user dynamic data is kept in the session. But even cleaning up the session data/cookies for the second user, the channels connecteds are always the ones from the first user.
If I clean everyones cache, cookies, delete session data in the server, rehash as an admin and delete all temporary/private data (logs, cache, ...) and connect with the second user but, this time as the first user connection to the chat, the correct channels will openup (as expected). But now connecting with the first user from the first attempt (which had suceeded before) will open the wrong channels this time.
So, what we have is the first user who connects gets to decide which channels everybody will get to see.
I am not deep familiar with the code yet, but I would like to help solving it if this is considered low priority right now.
-Raul Dias