Merge pull request #913 from Emotyco/libresapi_participants_refresh

Fixed: Room's participants list is correctly refreshed. Previously it did not react to new participants in room
This commit is contained in:
csoler 2017-07-04 10:24:43 +02:00 committed by GitHub
commit 3274852647

View File

@ -266,7 +266,8 @@ void ChatHandler::tick()
else
{
LobbyParticipantsInfo& pi = mit->second;
if(!std::equal(pi.participants.begin(), pi.participants.end(), info.gxs_ids.begin()))
if(!std::equal(pi.participants.begin(), pi.participants.end(), info.gxs_ids.begin())
|| pi.participants.size() != info.gxs_ids.size())
{
pi.participants = info.gxs_ids;
mStateTokenServer->replaceToken(pi.state_token);