Respect 'just_joined' participant flag.

This commit is contained in:
John Preston 2020-12-14 20:08:47 +04:00
parent 7ab919e249
commit ad2d2c203f
1 changed files with 3 additions and 1 deletions

View File

@ -288,7 +288,6 @@ void GroupCall::applyParticipantsSlice(
_userBySsrc.emplace(value.ssrc, user);
_participants.push_back(value);
_peer->owner().unregisterInvitedToCallUser(_id, user);
++changedCount;
} else {
if (i->ssrc != value.ssrc) {
_userBySsrc.erase(i->ssrc);
@ -296,6 +295,9 @@ void GroupCall::applyParticipantsSlice(
}
*i = value;
}
if (data.is_just_joined()) {
++changedCount;
}
if (sliceSource != ApplySliceSource::SliceLoaded) {
_participantUpdates.fire({
.was = was,