mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
Mute by me / change participant volume.
This commit is contained in:
@@ -280,8 +280,10 @@ void GroupCall::applyParticipantsSlice(
|
||||
.date = data.vdate().v,
|
||||
.lastActive = lastActive,
|
||||
.ssrc = uint32(data.vsource().v),
|
||||
.volume = data.vvolume().value_or(kDefaultVolume),
|
||||
.speaking = canSelfUnmute && (was ? was->speaking : false),
|
||||
.muted = data.is_muted(),
|
||||
.mutedByMe = data.is_muted_by_you(),
|
||||
.canSelfUnmute = canSelfUnmute,
|
||||
};
|
||||
if (i == end(_participants)) {
|
||||
|
@@ -32,14 +32,17 @@ public:
|
||||
|
||||
void setPeer(not_null<PeerData*> peer);
|
||||
|
||||
static constexpr auto kDefaultVolume = 10000;
|
||||
struct Participant {
|
||||
not_null<UserData*> user;
|
||||
TimeId date = 0;
|
||||
TimeId lastActive = 0;
|
||||
uint32 ssrc = 0;
|
||||
int volume = 0;
|
||||
bool sounding = false;
|
||||
bool speaking = false;
|
||||
bool muted = false;
|
||||
bool mutedByMe = false;
|
||||
bool canSelfUnmute = false;
|
||||
};
|
||||
struct ParticipantUpdate {
|
||||
|
Reference in New Issue
Block a user