Immrove groupCallParticipant mute-related flags.
This commit is contained in:
parent
631dde0939
commit
1412e83363
@ -2128,13 +2128,14 @@ groupCallJoinResponse payload:groupCallPayload candidates:vector<groupCallJoinRe
|
|||||||
//@is_speaking True, if the participant is speaking as set by setGroupCallParticipantIsSpeaking
|
//@is_speaking True, if the participant is speaking as set by setGroupCallParticipantIsSpeaking
|
||||||
//@can_be_muted_for_all_users True, if the current user can mute the participant for all other group call participants
|
//@can_be_muted_for_all_users True, if the current user can mute the participant for all other group call participants
|
||||||
//@can_be_unmuted_for_all_users True, if the current user can allow the participant to unmute themself or unmute the participant (if the participant is the current user)
|
//@can_be_unmuted_for_all_users True, if the current user can allow the participant to unmute themself or unmute the participant (if the participant is the current user)
|
||||||
//@can_be_muted_only_for_self True, if the current user can mute the participant only for self
|
//@can_be_muted_for_current_user True, if the current user can mute the participant only for self
|
||||||
//@can_be_unmuted_only_for_self True, if the current user can unmute the participant for self
|
//@can_be_unmuted_for_current_user True, if the current user can unmute the participant for self
|
||||||
//@is_muted True, if the participant is muted
|
//@is_muted_for_all_users True, if the participant is muted for all users
|
||||||
//@can_unmute_self True, if the participant can unmute themself
|
//@is_muted_for_current_user True, if the participant is muted for the current user
|
||||||
|
//@can_unmute_self True, if the participant is muted for all users, but can unmute themself
|
||||||
//@volume_level Participant's volume level; 1-20000 in hundreds of percents
|
//@volume_level Participant's volume level; 1-20000 in hundreds of percents
|
||||||
//@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
|
//@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 volume_level:int32 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_for_current_user:Bool can_be_unmuted_for_current_user:Bool is_muted_for_all_users:Bool is_muted_for_current_user:Bool can_unmute_self:Bool volume_level:int32 order:int64 = GroupCallParticipant;
|
||||||
|
|
||||||
|
|
||||||
//@class CallProblem @description Describes the exact type of a problem with a call
|
//@class CallProblem @description Describes the exact type of a problem with a call
|
||||||
|
Binary file not shown.
@ -128,7 +128,8 @@ td_api::object_ptr<td_api::groupCallParticipant> GroupCallParticipant::get_group
|
|||||||
return td_api::make_object<td_api::groupCallParticipant>(
|
return td_api::make_object<td_api::groupCallParticipant>(
|
||||||
contacts_manager->get_user_id_object(user_id, "get_group_call_participant_object"), audio_source, is_speaking,
|
contacts_manager->get_user_id_object(user_id, "get_group_call_participant_object"), audio_source, is_speaking,
|
||||||
can_be_muted_for_all_users, can_be_unmuted_for_all_users, can_be_muted_only_for_self,
|
can_be_muted_for_all_users, can_be_unmuted_for_all_users, can_be_muted_only_for_self,
|
||||||
can_be_unmuted_only_for_self, get_is_muted(), server_is_muted_by_themselves, get_volume_level(), order);
|
can_be_unmuted_only_for_self, server_is_muted_by_admin, server_is_muted_locally, server_is_muted_by_themselves,
|
||||||
|
get_volume_level(), order);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator==(const GroupCallParticipant &lhs, const GroupCallParticipant &rhs) {
|
bool operator==(const GroupCallParticipant &lhs, const GroupCallParticipant &rhs) {
|
||||||
@ -137,7 +138,8 @@ bool operator==(const GroupCallParticipant &lhs, const GroupCallParticipant &rhs
|
|||||||
lhs.can_be_unmuted_for_all_users == rhs.can_be_unmuted_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 &&
|
lhs.can_be_muted_only_for_self == rhs.can_be_muted_only_for_self &&
|
||||||
lhs.can_be_unmuted_only_for_self == rhs.can_be_unmuted_only_for_self &&
|
lhs.can_be_unmuted_only_for_self == rhs.can_be_unmuted_only_for_self &&
|
||||||
lhs.get_is_muted() == rhs.get_is_muted() &&
|
lhs.server_is_muted_by_admin == rhs.server_is_muted_by_admin &&
|
||||||
|
lhs.server_is_muted_locally == rhs.server_is_muted_locally &&
|
||||||
lhs.server_is_muted_by_themselves == rhs.server_is_muted_by_themselves && lhs.is_speaking == rhs.is_speaking &&
|
lhs.server_is_muted_by_themselves == rhs.server_is_muted_by_themselves && lhs.is_speaking == rhs.is_speaking &&
|
||||||
lhs.get_volume_level() == rhs.get_volume_level() && lhs.order == rhs.order;
|
lhs.get_volume_level() == rhs.get_volume_level() && lhs.order == rhs.order;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user