Add groupCallParticipant.muted_only_for_self_count.
This commit is contained in:
parent
7bf916f4f5
commit
607d198d36
|
@ -2108,8 +2108,9 @@ groupCallJoinResponse payload:groupCallPayload candidates:vector<groupCallJoinRe
|
|||
//@can_be_unmuted_only_for_self True, if the current user can unmute the participant for self
|
||||
//@is_muted True, if the participant is muted
|
||||
//@can_unmute_self True, if the participant can unmute themself
|
||||
//@mute_only_for_self_count Number of times the participant is muted by other participants
|
||||
//@order User's order in the group call participant list. The bigger is order, the higher is user in the list. If order is 0, the user must be removed from the participant list
|
||||
groupCallParticipant user_id:int32 source:int32 is_speaking:Bool can_be_muted_for_all_users:Bool can_be_unmuted_for_all_users:Bool can_be_muted_only_for_self:Bool can_be_unmuted_only_for_self:Bool is_muted:Bool can_unmute_self:Bool order:int64 = GroupCallParticipant;
|
||||
groupCallParticipant user_id:int32 source:int32 is_speaking:Bool can_be_muted_for_all_users:Bool can_be_unmuted_for_all_users:Bool can_be_muted_only_for_self:Bool can_be_unmuted_only_for_self:Bool is_muted:Bool can_unmute_self:Bool mute_only_for_self_count:int32 order:int64 = GroupCallParticipant;
|
||||
|
||||
|
||||
//@class CallProblem @description Describes the exact type of a problem with a call
|
||||
|
|
Binary file not shown.
|
@ -19,6 +19,7 @@ GroupCallParticipant::GroupCallParticipant(const tl_object_ptr<telegram_api::gro
|
|||
is_muted = participant->muted_;
|
||||
can_self_unmute = participant->can_self_unmute_;
|
||||
is_muted_only_for_self = participant->muted_by_you_;
|
||||
muted_count = participant->muted_cnt_;
|
||||
if (!participant->left_) {
|
||||
joined_date = participant->date_;
|
||||
if ((participant->flags_ & telegram_api::groupCallParticipant::ACTIVE_DATE_MASK) != 0) {
|
||||
|
@ -81,11 +82,11 @@ td_api::object_ptr<td_api::groupCallParticipant> GroupCallParticipant::get_group
|
|||
return td_api::make_object<td_api::groupCallParticipant>(
|
||||
contacts_manager->get_user_id_object(user_id, "get_group_call_participant_object"), source, is_speaking,
|
||||
can_be_muted_for_all_users, can_be_unmuted_for_all_users, can_be_muted_only_for_self,
|
||||
can_be_unmuted_only_for_self, is_muted, can_self_unmute, order);
|
||||
can_be_unmuted_only_for_self, is_muted, can_self_unmute, muted_count, order);
|
||||
}
|
||||
|
||||
bool operator==(const GroupCallParticipant &lhs, const GroupCallParticipant &rhs) {
|
||||
return lhs.user_id == rhs.user_id && lhs.source == rhs.source &&
|
||||
return lhs.user_id == rhs.user_id && lhs.source == rhs.source && lhs.muted_count == rhs.muted_count &&
|
||||
lhs.can_be_muted_for_all_users == rhs.can_be_muted_for_all_users &&
|
||||
lhs.can_be_unmuted_for_all_users == rhs.can_be_unmuted_for_all_users &&
|
||||
lhs.can_be_muted_only_for_self == rhs.can_be_muted_only_for_self &&
|
||||
|
|
|
@ -22,6 +22,7 @@ struct GroupCallParticipant {
|
|||
int32 source = 0;
|
||||
int32 joined_date = 0;
|
||||
int32 active_date = 0;
|
||||
int32 muted_count = 0;
|
||||
bool is_muted = false;
|
||||
bool can_self_unmute = false;
|
||||
bool is_muted_only_for_self = false;
|
||||
|
|
Loading…
Reference in New Issue
Block a user