2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Apply self mute status locally.

This commit is contained in:
John Preston
2020-11-28 10:41:33 +03:00
parent 7983d33ad5
commit b54a2aa40b
3 changed files with 32 additions and 21 deletions

View File

@@ -198,7 +198,7 @@ void GroupCall::applyParticipantsSlice(
.date = data.vdate().v,
.source = uint32(data.vsource().v),
.muted = data.is_muted(),
.canSelfUnmute = data.is_can_self_unmute(),
.canSelfUnmute = !data.is_muted() || data.is_can_self_unmute(),
};
if (i == end(_participants)) {
_participants.push_back(value);
@@ -236,7 +236,7 @@ void GroupCall::applyParticipantsMutes(
&Participant::user);
if (i != end(_participants)) {
i->muted = data.is_muted();
i->canSelfUnmute = data.is_can_self_unmute();
i->canSelfUnmute = !i->muted || data.is_can_self_unmute();
_participantUpdates.fire({
.participant = *i,
});