mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-28 16:27:01 -05:00
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:
commit
3274852647
@ -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…
x
Reference in New Issue
Block a user