diff --git a/Telegram/Resources/tl/api.tl b/Telegram/Resources/tl/api.tl index 6d2f7fa06a..cb7ea42745 100644 --- a/Telegram/Resources/tl/api.tl +++ b/Telegram/Resources/tl/api.tl @@ -1191,7 +1191,7 @@ inputGroupCall#d8aa840f id:long access_hash:long = InputGroupCall; groupCallParticipant#56b087c9 flags:# muted:flags.0?true left:flags.1?true can_self_unmute:flags.2?true user_id:int date:int active_date:flags.3?int source:int = GroupCallParticipant; -phone.groupCall#985c2087 call:GroupCall sources:Vector participants:Vector participants_next_offset:string users:Vector = phone.GroupCall; +phone.groupCall#66ab0bfc call:GroupCall participants:Vector participants_next_offset:string users:Vector = phone.GroupCall; phone.groupParticipants#9cfeb92d count:int participants:Vector next_offset:string users:Vector version:int = phone.GroupParticipants; @@ -1557,7 +1557,7 @@ phone.inviteToGroupCall#7b393160 call:InputGroupCall users:Vector = U phone.discardGroupCall#7a777135 call:InputGroupCall = Updates; phone.toggleGroupCallSettings#74bbb43d flags:# call:InputGroupCall join_muted:flags.0?Bool = Updates; phone.getGroupCall#c7cb017 call:InputGroupCall = phone.GroupCall; -phone.getGroupParticipants#ae1910a4 call:InputGroupCall offset:string limit:int = phone.GroupParticipants; +phone.getGroupParticipants#c9f1d285 call:InputGroupCall ids:Vector sources:Vector offset:string limit:int = phone.GroupParticipants; phone.checkGroupCall#b74a7bea call:InputGroupCall source:int = Bool; langpack.getLangPack#f2f2330a lang_pack:string lang_code:string = LangPackDifference; diff --git a/Telegram/SourceFiles/calls/calls_group_call.cpp b/Telegram/SourceFiles/calls/calls_group_call.cpp index 08838d9164..a99229d5ba 100644 --- a/Telegram/SourceFiles/calls/calls_group_call.cpp +++ b/Telegram/SourceFiles/calls/calls_group_call.cpp @@ -351,7 +351,8 @@ void GroupCall::createAndStartController() { }, .audioLevelsUpdated = [=](const AudioLevels &data) { }, - .myAudioLevelUpdated = [=](float) { + .myAudioLevelUpdated = [=](float level) { + crl::on_main(weak, [=] { myLevelUpdated(level); }); }, .initialInputDeviceId = settings.callInputDeviceId().toStdString(), .initialOutputDeviceId = settings.callOutputDeviceId().toStdString(), @@ -387,6 +388,12 @@ void GroupCall::createAndStartController() { //raw->setAudioOutputDuckingEnabled(settings.callAudioDuckingEnabled()); } +void GroupCall::myLevelUpdated(float level) { + if (level > 0.) { + + } +} + void GroupCall::sendMutedUpdate() { _api.request(_updateMuteRequestId).cancel(); _updateMuteRequestId = _api.request(MTPphone_EditGroupCallMember( diff --git a/Telegram/SourceFiles/calls/calls_group_call.h b/Telegram/SourceFiles/calls/calls_group_call.h index 2a5495ae14..7551e4a8ab 100644 --- a/Telegram/SourceFiles/calls/calls_group_call.h +++ b/Telegram/SourceFiles/calls/calls_group_call.h @@ -104,6 +104,8 @@ private: void applySelfInCallLocally(); void rejoin(); + void myLevelUpdated(float level); + [[nodiscard]] MTPInputGroupCall inputCall() const; const not_null _delegate; diff --git a/Telegram/SourceFiles/data/data_group_call.cpp b/Telegram/SourceFiles/data/data_group_call.cpp index 1d6265614a..a3a6251c6e 100644 --- a/Telegram/SourceFiles/data/data_group_call.cpp +++ b/Telegram/SourceFiles/data/data_group_call.cpp @@ -63,6 +63,8 @@ void GroupCall::requestParticipants() { auto &api = _channel->session().api(); _participantsRequestId = api.request(MTPphone_GetGroupParticipants( input(), + MTP_vector(), // ids + MTP_vector(), // sources MTP_string(_nextOffset), MTP_int(kRequestPerPage) )).done([=](const MTPphone_GroupParticipants &result) {