2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Allow inviting members to the group call.

This commit is contained in:
John Preston
2020-11-28 21:17:13 +03:00
parent 9e5006dd67
commit 3a5b625d64
18 changed files with 478 additions and 48 deletions

View File

@@ -208,13 +208,14 @@ void GroupCall::applyParticipantsSlice(
.canSelfUnmute = !data.is_muted() || data.is_can_self_unmute(),
};
if (i == end(_participants)) {
_userBySource.emplace(value.source, value.user);
_userBySource.emplace(value.source, user);
_participants.push_back(value);
_channel->owner().unregisterInvitedToCallUser(_id, user);
++fullCount;
} else {
if (i->source != value.source) {
_userBySource.erase(i->source);
_userBySource.emplace(value.source, value.user);
_userBySource.emplace(value.source, user);
}
*i = value;
}