Fixed: Room's participants list is correctly refreshed. Previously it did not react to new participants in room

This commit is contained in:
Konrad 2017-06-30 12:38:09 +02:00
parent 27774baf5d
commit 0f93dd2f9e

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);