mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-29 08:53:03 +02:00
Fix applying some Data::GroupCall updates.
This commit is contained in:
parent
eb06c0da08
commit
3a68dd50ce
1 changed files with 4 additions and 3 deletions
|
@ -1092,8 +1092,8 @@ void GroupCall::setState(State state) {
|
||||||
|
|
||||||
if (state == State::Joined) {
|
if (state == State::Joined) {
|
||||||
stopConnectingSound();
|
stopConnectingSound();
|
||||||
if (const auto call = _peer->groupCall(); call && call->id() == _id) {
|
if (const auto real = lookupReal()) {
|
||||||
call->setInCall();
|
real->setInCall();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1950,7 +1950,7 @@ void GroupCall::applyParticipantLocally(
|
||||||
| (participant->raisedHandRating
|
| (participant->raisedHandRating
|
||||||
? Flag::f_raise_hand_rating
|
? Flag::f_raise_hand_rating
|
||||||
: Flag(0));
|
: Flag(0));
|
||||||
_peer->groupCall()->applyLocalUpdate(
|
lookupReal()->applyLocalUpdate(
|
||||||
MTP_updateGroupCallParticipants(
|
MTP_updateGroupCallParticipants(
|
||||||
inputCall(),
|
inputCall(),
|
||||||
MTP_vector<MTPGroupCallParticipant>(
|
MTP_vector<MTPGroupCallParticipant>(
|
||||||
|
@ -2893,6 +2893,7 @@ bool GroupCall::tryCreateScreencast() {
|
||||||
.createAudioDeviceModule = Webrtc::LoopbackAudioDeviceModuleCreator(),
|
.createAudioDeviceModule = Webrtc::LoopbackAudioDeviceModuleCreator(),
|
||||||
.videoCapture = _screenCapture,
|
.videoCapture = _screenCapture,
|
||||||
.videoContentType = tgcalls::VideoContentType::Screencast,
|
.videoContentType = tgcalls::VideoContentType::Screencast,
|
||||||
|
.e2eEncryptDecrypt = _e2e ? _e2e->callbackEncryptDecrypt() : nullptr,
|
||||||
};
|
};
|
||||||
|
|
||||||
LOG(("Call Info: Creating group screen instance"));
|
LOG(("Call Info: Creating group screen instance"));
|
||||||
|
|
Loading…
Add table
Reference in a new issue