Commit f4424037 authored by Ghislain MARY's avatar Ghislain MARY

Do not reinvite group chat participant device in the left state if this...

Do not reinvite group chat participant device in the left state if this participant has been removed.
parent 7ca893b3
......@@ -535,9 +535,12 @@ void ServerGroupChatRoomPrivate::addParticipantDevice (const shared_ptr<Particip
lInfo() << q << ": Adding participant device that is currently in state [" << device->getState() << "]";
switch (device->getState()) {
case ParticipantDevice::State::Joining:
case ParticipantDevice::State::Left:
inviteDevice(device);
break;
case ParticipantDevice::State::Left:
if (!findFilteredParticipant(participant->getAddress()))
inviteDevice(device);
break;
case ParticipantDevice::State::Leaving:
byeDevice(device);
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment