mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-08 08:04:08 +02:00
Fixed applying participant locally in group calls.
This commit is contained in:
parent
173564bcd5
commit
70cdc05544
1 changed files with 2 additions and 1 deletions
|
@ -409,8 +409,9 @@ void GroupCall::applyParticipantLocally(
|
||||||
const auto mutedCount = 0/*participant->mutedCount*/;
|
const auto mutedCount = 0/*participant->mutedCount*/;
|
||||||
using Flag = MTPDgroupCallParticipant::Flag;
|
using Flag = MTPDgroupCallParticipant::Flag;
|
||||||
const auto flags = (canSelfUnmute ? Flag::f_can_self_unmute : Flag(0))
|
const auto flags = (canSelfUnmute ? Flag::f_can_self_unmute : Flag(0))
|
||||||
|
| (volume.has_value() ? Flag::f_volume : Flag(0))
|
||||||
| (participant->lastActive ? Flag::f_active_date : Flag(0))
|
| (participant->lastActive ? Flag::f_active_date : Flag(0))
|
||||||
| (participant->muted ? Flag::f_muted : Flag(0))
|
| (mute ? Flag::f_muted : Flag(0))
|
||||||
| (participant->mutedByMe ? Flag::f_muted_by_you : Flag(0));
|
| (participant->mutedByMe ? Flag::f_muted_by_you : Flag(0));
|
||||||
_peer->groupCall()->applyUpdateChecked(
|
_peer->groupCall()->applyUpdateChecked(
|
||||||
MTP_updateGroupCallParticipants(
|
MTP_updateGroupCallParticipants(
|
||||||
|
|
Loading…
Add table
Reference in a new issue