mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-23 16:21:29 -04:00
Fixed: Room's participants list is correctly refreshed. Previously it did not react to new participants in room
This commit is contained in:
parent
27774baf5d
commit
0f93dd2f9e
1 changed files with 2 additions and 1 deletions
|
@ -266,7 +266,8 @@ void ChatHandler::tick()
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LobbyParticipantsInfo& pi = mit->second;
|
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;
|
pi.participants = info.gxs_ids;
|
||||||
mStateTokenServer->replaceToken(pi.state_token);
|
mStateTokenServer->replaceToken(pi.state_token);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue